SSH like a pro!
Monday, September 1, 2025
WREN WiFi or VPN to vpn.westpoint.eduEECSNet WiFi or VPN to vpn.eecs.ninjaEECSNet WiFi. Use your WREN credentials.
firstname.lastnamevpn.eecs.ninja using your EECSNet credentials.
firstname.lastnameqwer1234QWER!@#$Note
This only applies to EECSNet VMs. For graphical access to VMs in the WREN Linux cluster, please talk to your instructor.
Launch Web Console button and log in using your VM credentials.Windows key or click Start or Search at the bottom.Terminal or PowerShell.ssh USER@DESTINATION
USER is your username on the VMDESTINATION is the hostname or IP address of the VM.ssh firstname.lastname@eecslinuxth123 or ssh cadet@10.20.30.40Go to the terminal. Check if you have existing SSH keys:
If you see files named id_rsa.pub and id_ecdsa.pub, you already have an SSH keypair.
If you do not see those files, generate a new SSH keypair: ssh-keygen
Enter to accept the default file locationEnter twice to skip passphrase, unless you want the extra securityCopy your public key to the VM: ssh-copy-id USER@DESTINATION
Important
You should definitely create it to simplify your SSH commands.
Go to your terminal and open your SSH config file:
Add an entry for your VM:
Save and exit: Ctrl+O, Enter, Ctrl+X
Install and run Visual Studio Code and then add Remote - SSH extension
Add host: Command Palette → Remote-SSH: Add New SSH Host...
ssh cadet@<YOUR_VM_IP> → save to configWhen saving to config, choose the first file that is located within your user directory
Change the host to your desired name, e.g. cy350vm
Type man ssh_config on Linux for a more detailed reference
Host cy350vm
HostName <YOUR_VM_IP>
User cadetRemote-SSH: Connect to Host... → choose Linuxls # list files in the current directory
cd <directory> # change to a different directory
pwd # print the current working directory
nano <file> # open a file in the nano text editor
ps # or `top` or `htop` - view running processes and system resource usage
sudo <command> # run a command with superuser (root) privileges
man <command> # view the manual page for a command
fish # switch to the friendly interactive shell
exit # or `Ctrl+D` - close the shell sessionBuilt-in scp command:
Visual Studio Code with the Remote - SSH extension
Pro-tip: Use rsync for large file transfers and directory synchronization.
