15 SSH, SCP - Secure Shell, Secure
15 SSH, SCP - Secure Shell, Secure
- telnet
- ssh
- vnc
SSH - Secure shell
It is a cryptography protocol used to access the shell of remote device in a secure way
Password authentication
or
ssh [email protected]
Note:
● By default sshd service will run and allowed via firewall in latest version of rhel and
works in password based authentication
or
~/.ssh/id_rsa
~/.ssh/id_rsa.pub
or
~/.ssh/id_dsa
~/.ssh/id_dsa.pub
Note:
#try logging in
ssh user1@servera
Note:
or
#try logging in
ssh -i demo user1@servera
Note:
● It will prompt for the passphrase of the key, not the password of remote user while
logging in
SSH server configuration
#install software
firewall-cmd --reload
#edit configuration
vim /etc/ssh/sshd_config
Port 22
PermitRootLogin no
PasswordAuthentication no
#restart service
Remote to local