How to achieve a Linux computer to connect with another Linux computer?
First, see if installed ssh service: systemctl status sshd.service
Start Service: systemctl start sshd.service
restart the service: systemctl restart sshd.service
boot from Kai: systemctl enable sshd.service
If the service has been installed directly in ssh input terminal: ssh username @ IP (computer connected to the IP ip)
If not, then at the command line: yum install openssh-server (which is installed ssh command service)
How to achieve implementation of the SSH password-free login copy files between linux?
Copy files to a remote server locally:
scp -r -P port number Username @IP address: / usr / local / tomcat_airc / webapps / / tmp / kyj /
Copy local files to the remote server:
scp -r /tmp/kyj/sys.war user name @IP address: / usr / local / tomcat_airc / webapps /
From https://blog.csdn.net/qq_25948717/article/details/80310641