Remote Service SSHD

1. Start the SSH service

1. Check status:

systemctl status sshd

2. Start

sudo systemctl start sshd

2. Log in and exit SSH

Log in:

ssh account@hostip

1. Check IP

ip addr

2.Remote login

ssh 用户名@10.16.86.15

3.Exit

exit

3. Password-free login for SSH service

1. Generate a public-private key pair locally

ssh-keygen

View public-private key files

ls ~/.ssh

2. Copy the public key file to the server

ssh-copy-id 用户名@10.16.95.67

Guess you like

Origin blog.csdn.net/m0_74421072/article/details/133267460