<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.snu.edu.in/index.php?action=history&amp;feed=atom&amp;title=Magus02%2FSSH</id>
	<title>Magus02/SSH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.snu.edu.in/index.php?action=history&amp;feed=atom&amp;title=Magus02%2FSSH"/>
	<link rel="alternate" type="text/html" href="https://wiki.snu.edu.in/index.php?title=Magus02/SSH&amp;action=history"/>
	<updated>2026-11-04T19:44:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://wiki.snu.edu.in/index.php?title=Magus02/SSH&amp;diff=1180&amp;oldid=prev</id>
		<title>Deepak: new</title>
		<link rel="alternate" type="text/html" href="https://wiki.snu.edu.in/index.php?title=Magus02/SSH&amp;diff=1180&amp;oldid=prev"/>
		<updated>2026-04-20T06:35:04Z</updated>

		<summary type="html">&lt;p&gt;new&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===== FILE: 04_Magus02_SSH.txt =====&lt;br /&gt;
PASTE INTO WIKI PAGE: Magus02/SSH&lt;br /&gt;
&lt;br /&gt;
{{DISPLAYTITLE:SSH Access — Magus02 HPC}}&lt;br /&gt;
&amp;lt;div style=&amp;quot;background:#0d1b2a;border:1px solid #1e3a5a;border-radius:8px;padding:12px 18px;margin-bottom:20px;font-size:13px;font-family:monospace;color:#5ba3d9;&amp;quot;&amp;gt;&lt;br /&gt;
📍 [[Magus02/Knowledge_Base|Magus02 Knowledge Base]] → Basics → SSH Access&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SSH (Secure Shell) is the standard protocol for accessing Magus02. It provides encrypted command-line access to the cluster's login nodes.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== General ==&lt;br /&gt;
&lt;br /&gt;
SSH allows you to log into a remote computer over a network and execute commands as if you were physically present. On Magus02, SSH connects you to the '''login nodes''' — dedicated front-end machines from which you can compile code, manage files, and submit jobs to Slurm.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background:#2a1a00;border-left:4px solid #f0c040;border-radius:6px;padding:14px 18px;margin:16px 0;font-size:14px;color:#d4b870;&amp;quot;&amp;gt;&lt;br /&gt;
⚠️ &amp;lt;strong&amp;gt;Important:&amp;lt;/strong&amp;gt; Access to Magus02 login nodes is restricted to the SNU campus network. If you are off-campus, you must first connect to the SNU VPN before SSH will work. See the &amp;lt;strong&amp;gt;External Access&amp;lt;/strong&amp;gt; section below.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SSH Clients by Platform ==&lt;br /&gt;
&lt;br /&gt;
=== Linux / macOS ===&lt;br /&gt;
&lt;br /&gt;
OpenSSH is pre-installed. Open a terminal and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ssh your_username@magus02.snu.edu.in&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On first connection, you will be asked to verify the host fingerprint — type &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt; to accept. Enter your password when prompted.&lt;br /&gt;
&lt;br /&gt;
To enable X11 forwarding (for graphical applications):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ssh -X your_username@magus02.snu.edu.in&lt;br /&gt;
# If -X doesn't work, try -Y (trusted forwarding):&lt;br /&gt;
$ ssh -Y your_username@magus02.snu.edu.in&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
Since Windows 10 version 1709, SSH is built in. Open '''Command Prompt''' or '''PowerShell''' and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh your_username@magus02.snu.edu.in&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, use a dedicated SSH client:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Client !! Notes !! Download&lt;br /&gt;
|-&lt;br /&gt;
| '''PuTTY''' || Classic, lightweight, widely documented || [https://putty.org putty.org]&lt;br /&gt;
|-&lt;br /&gt;
| '''MobaXterm''' || Integrated SSH + X11 + SFTP file browser || [https://mobaxterm.mobatek.net mobaxterm.mobatek.net]&lt;br /&gt;
|-&lt;br /&gt;
| '''Bitvise''' || Full-featured SSH + SFTP client || [https://bitvise.com bitvise.com]&lt;br /&gt;
|-&lt;br /&gt;
| '''Windows Subsystem for Linux (WSL)''' || Full Linux environment within Windows; use &amp;lt;code&amp;gt;ssh&amp;lt;/code&amp;gt; natively || Built-in (enable via Windows Features)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SSH Key Authentication ==&lt;br /&gt;
&lt;br /&gt;
For convenience and improved security, use SSH key pairs instead of passwords. Generate a key pair on your local machine:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ssh-keygen -t ed25519 -C &amp;quot;your_email@snu.edu.in&amp;quot;&lt;br /&gt;
# Accept the default location (~/.ssh/id_ed25519)&lt;br /&gt;
# Set a strong passphrase&lt;br /&gt;
&lt;br /&gt;
# Copy your public key to Magus02:&lt;br /&gt;
$ ssh-copy-id your_username@magus02.snu.edu.in&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this, SSH logins no longer require typing your password each time.&lt;br /&gt;
&lt;br /&gt;
== External Access — VPN ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background:#2a1e00;border:1px solid #5a4010;border-radius:10px;padding:20px 24px;margin:16px 0;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-weight:700;font-size:15px;color:#f0c040;margin-bottom:8px;&amp;quot;&amp;gt;🔒 VPN Required for Off-Campus Access&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:14px;color:#c8a850;line-height:1.7;&amp;quot;&amp;gt;To access Magus02 from outside the SNU campus network, a VPN connection is mandatory. Without it, the SSH connection will time out. To obtain VPN credentials, submit a VPN Request Form to the HPC admin team or scan the QR code in your welcome email.&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once VPN is active, SSH works exactly as normal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# 1. Connect to SNU VPN using the provided client&lt;br /&gt;
# 2. Then SSH as usual:&lt;br /&gt;
$ ssh your_username@magus02.snu.edu.in&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resetting Your Password ==&lt;br /&gt;
&lt;br /&gt;
; Step 1: Log in to Magus02 via SSH with your current password.&lt;br /&gt;
; Step 2: Run the &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt; command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[user@magus02 ~]$ passwd&lt;br /&gt;
Changing password for user user.&lt;br /&gt;
Current password: ••••••••&lt;br /&gt;
New password: ••••••••&lt;br /&gt;
Retype new password: ••••••••&lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background:#0d1a2a;border-left:4px solid #00c9ff;border-radius:6px;padding:14px 18px;margin:16px 0;font-size:14px;color:#94a8be;&amp;quot;&amp;gt;&lt;br /&gt;
🔐 &amp;lt;strong&amp;gt;Password Policy:&amp;lt;/strong&amp;gt; Minimum 8 characters; must include uppercase, lowercase, numbers, and special characters. Shared passwords are strictly prohibited.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.freebsd.org/cgi/man.cgi?query=ssh&amp;amp;sektion=1 SSH man page]&lt;br /&gt;
* [[Magus02/Getting_Started|Getting Started on Magus02]]&lt;br /&gt;
* [[Magus02/File_Transfer|File Transfer (SCP / WinSCP)]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-family:monospace;font-size:11px;color:#484f58;text-align:right;&amp;quot;&amp;gt;&lt;br /&gt;
[[Magus02/Knowledge_Base|↑ Back to Knowledge Base]] · Maintained by HPC Administration · wiki.snu.edu.in&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Deepak</name></author>
	</entry>
</feed>