SSH Flashcards
Dir contains pub and private keys on local machine
~/.ssh
After connecting using ssh, remote host’s finger print will be added to ~/.ssh/known_host file of local machine
Generate pub/priv pair of keys on local machine
ssh-keygen
Copy pub key to remote server
ssh-copy-id cloud_user@1.2.3.4
File contains authorized keys on remote machine
~/.ssh/authorized_keys
Global client side conf file of ssh
/etc/ssh/ssh_config
here port to connect to ssh server can be set up
Global server side conf file of ssh
/etc/sshd_config
1. 22 port be redefined to accept connections from
2. Root user can be restricted to access to
3. add AllowUsers user1
add AllowGroups
to allow only specified users and/or groups to
TCPWrappers
create hosts.allow and/or hosts deny in /etc dir vim /etc/hosts.allow sshd : 1.2.3.4, 1.2.3.5 vim /etc/hosts.deny sshd : ALL hosts.allow supersedes hosts.deny