SSH - Secure Shell
Intro
Â
My notes on SSH tools
Â
Generate Public + Private Keys for SSH
Â
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
The private key (which you must keep secret) will be written to ~/.ssh/id_rsa
. Your public key, which can be shared, will be stored in ~/.ssh/id_rsa.pub
.
Â
You must then copy the public key to the servers you intend to login via SSH.
Â
ssh-copy-id <username>@<server hostname>
Â
You can also copy the id_rsa.pub
directly to the server and then append it to the authorized_keys
files. The authorized keys are by default configured in .ssh/authorized_keys
 in the user's home directory
Â
Â
Other Resources
SSH’s documentation: Generate a New SSH Key, Authorized_keys File in SSH, Configuring Authorized Keys for OpenSSH
SSH Academy has good information on SSH and IAM: SSH Academy
Â
SSH Terminals
Â
CygWin has SSH built in.
Putty
MobaXterm - my favorite, includes secure copy to move files between Windows and Linux
Windows Subsystem for Linux comes with SSH preinstalled.
Â
SSH Academy’s Best free SSH clients for Windows
Â
Commands
Â
Login to remote computer.
ssh -p <optional port number> <username>@<remote hostname>
Specify the identity (private key file) with the -i
ssh -i sshkey.private bandit14@localhost
Â
Copy file to remote computer
Â
SSH Scanners
Â
Qualys has an SSH scanning tool to detect access with common passwords