Overview¶
This is our developer docs about How to remote to server Ubuntu
SSH to server¶
Use Putty¶
- Install Putty
- Create file server.ppk with info about Putty Key
- Fill info about server
- Host name or Ip
- Port
- Connection > SSH > Auth then press Browse… to file server.ppk
Use command line¶
- Install SSH
- Create file server.pem with info about Private key
- Provide permission 400 for file server.pem to to make sure that your private key file isn't publicly viewable.
chmod 400 server.pem
-
Connect to server by command
ssh -i server.pem ubuntu@url.com -p 2213
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
Command line with ssh¶
Connect to server¶
- Connect to server
ssh <user>@<remote_host> -p <port>
Copy files¶
- Copy file from local host to to remote host
scp <file_path> <user>@<remote_host>:<remote_dir>
- Copy file from remote host to local host
scp <user>@<remote_host>:<remote_file_path> <local_dir>
- Multiple files from Local host to the Remote host
scp <file_path> <file_path> <user>@<remote_host>:<remote_dir>
- Directory from Local host to the Remote host
scp -r <local_dir> <user>@<remote_host>:<remote_dir>
- Directory from Remote host to the Local host
scp -r <user>@<remote_host>:<remote_dir> <local_dir>