填入地址,回车
ssh user@host-or-ip
然后选择默认的配置,回车,得到以下结果:
点击链接
选择远程的系统
输入密码
(base) ubuntu@ubuntu-3090x2:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ubuntu/.ssh/id_rsa):
/home/ubuntu/.ssh/id_rsa already exists.
Overwrite (y/n)? n
(base) ubuntu@ubuntu-3090x2:~$ cd /home/ubuntu/.ssh
(base) ubuntu@ubuntu-3090x2:~/.ssh$ ls
authorized_keys id_rsa id_rsa.pub known_hosts
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Host ************
HostName ************
User ubuntu
IdentityFile "C:\Users\using\Documents\remote\id_rsa"
????????经过以上操作即可免密登录了。