Connecting with SSH
Note: You will need to replace SITE_USERNAME and PATH_TO_PRIVATE_KEY with your details!
Basic connection
ssh -p2223 -i ./key username@cse365.robwaz.net
username is your configured username on the site.
Specific private key:
On Windows, use the same commands in PowerShell.
First connection
You'll see a fingerprint prompt:
The authenticity of host 'host (1.2.3.4)' can't be established.
ED25519 key fingerprint is SHA256:...
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Type yes. The host fingerprint will then be saved for the future.
Saving a shortcut
Add an entry to ~/.ssh/config (Windows: C:\Users\<you>\.ssh\config):
Host cse365
HostName cse365.robwaz.net
User SITE_USERNAME
Port 2223
IdentityFile PATH_TO_PRIVATE_KEY
Then connect with:
ssh cse365
Copying files with scp
# Copies a file to your home directory on the server
scp localfile.txt SITE_USERNAME@cse365.robwaz.net:/home/SITE_USERNAME/
# Copies a file from the server to your current directory
scp SITE_USERNAME@cse365.robwaz.net:/home/SITE_USERNAME/file.txt .