OS: win7-x64
vagrant: Version: 1.9.6
virtualbox: VirtualBox 图形用户界面 ,版本 5.1.12 r112440 (Qt5.6.2)
box version: 下载地址
ubuntu: Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-53-generic x86_64)
使用xshell登录ubuntu时,提示输入用户密钥和密码
服务器类型: SSH2, OpenSSH_8.9p1 Ubuntu-3
与这个问题类似
如何解决:vim /etc/ssh/sshd_config,将PasswordAuthentication no
改为:
PasswordAuthentication yes
然后执行: sudo service ssh restart 即可。
ubuntu163源在这里
deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
先备份/etc/apt/sources.list文件,然后将163源的内容替换到sources.list内,将所有wily修改为jammy.
如何修改,vim sources.list
输入: :%s/wily/jammy/g