putty连接linux:Access Denied的解决方法

用putty连接ubantu出现 : Access Denied解决方法:
要让外界计算机连接到ubantu系统,我安装的是OpenSSH服务器,安装方法:
$ sudo apt -y install openssh-servser
运行如下:
root@ubuntu:/etc/ssh# sudo apt -y install openssh-server
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
ncurses-term openssh-sftp-server ssh-import-id
Suggested packages:
molly-guard monkeysphere rssh ssh-askpass
The following NEW packages will be installed:
ncurses-term openssh-server openssh-sftp-server ssh-import-id
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 637 kB of archives.
After this operation, 5,316 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ncurses-term all 6.1-1ubuntu1.18.04 [248 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-sftp-server amd64 1:7.6p1-4ubuntu0.3 [45.6 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-server amd64 1:7.6p1-4ubuntu0.3 [333 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ssh-import-id all 5.7-0ubuntu1.1 [10.9 kB]
Fetched 637 kB in 7s (97.2 kB/s)

最后,成功连接:
putty连接linux:Access Denied的解决方法_第1张图片

然后,我们就可以用putty运行Ubantu的终端了

你可能感兴趣的:(putty连接linux:Access Denied的解决方法)