SSH Commands

Use ssh to login to a remote system:
ssh [user]@[server.com]
Use ssh to login to a remote system with an ssh key:
ssh -i ~/.ssh/keyname [user]@[server.com]
Use ssh to execute a command on a remote system:
ssh user@user@server.com <command>
Create a log of an ssh session:
ssh user@server.com | tee -a ~/server.com.ssh.log
Copy a file from your local directory to a directory on a remote system:
scp [filename] [user]@[server.com]:/remote/directory
Create ssh key:
ssh-keygen -t ed25519 -C <comment>
Create ssh key:
ssh-keygen -t ed25519 -C <comment> -f ~/.ssh/id_ed25519_<outfilename>_key

About vicki

Welcome to the Sovereign Republic of Vickistan. I am the President here. Lucky me! No taxes or laws yet. Lucky you!
This entry was posted in Linux. Bookmark the permalink.