linux ssh remote login

install ssh

#Server

$ yum install -y openssh-server

Configuration file location: /etc/ssh/sshd_config

#client

$ yum -y install openssh-clients

 

#login

$ ssh [email protected] -p 22

 

#question:

root@compute01:~# ssh -i tangzhennan.pem [email protected]
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @        WARNING: UNPROTECTED PRIVATE KEY FILE!          @
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 Permissions 0644 for 'tangzhennan.pem' are too open.
 It is required that your private key files are NOT accessible by others.
 This private key will be ignored.
 bad permissions: ignore key: tangzhennan.pem
 [email protected]'s password:

Workaround: Reduce permissions from 0644 to 0600
$ chmod 0600 tanzhennan.pem

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326221909&siteId=291194637