Article From:https://www.cnblogs.com/maxlon/p/9685037.html

1.【See whether to start]

  Start SSHService “/etc/init.d/sshd start”。Then use netstat -antulp grep SSH.See if you can see the relevant information.

2.【Set auto start]

  How to set upsshSome services start automatically with the system boot?

     Method 1: [root@localhost ~] VI /etc/rc.local
      Accession: service sshd startOr /etc/init.d/sshd start

  Method two: Enter/etc/rc.dAnd then enter the corresponding operation.
      Levels such asrc3.d.takeKlabor foremansshService changed toSinitial

 

Linux – Secret login

Order:

ssh-keygen -t rsa

 

Catalog

/Users/user/.ssh/id_rsa already exists.

 

id_rsaFor the private key file, id_rsa.pub is a public key file.

 

ssh-copy-id -i ~/.ssh/id_rsa.pub dss@ip

 

Success!

 

Command line without direct login

ssh -p 22 dss@10.164.194.42  

 

Link of this Article: Linux – password free login

Leave a Reply

Your email address will not be published. Required fields are marked *