putty 连接linux失败---解决方案
来源:互联网 发布:怎么登陆淘宝店铺 编辑:程序博客网 时间:2024/05/17 10:26
在VMware中安装Ubuntu之后,主机可以ping通虚拟机,想用putty来连接,结果返回: Authentication refused。
如下为解决方案:
1.在Ubuntu上查看ssh服务是否开启, ps -ef|grep ssh
2.发现没有开启ssh,试图开启ssh, service ssh start(无法开启ssh,因为没有安装ssh server 和 client)
3.获取ssh server和client 安装包,apt update(返回很多404错误,说明有很多网址无法打开)
4.在网络上搜寻可用的源列表(source.list 位置为:/etc/apt/sources.list),例如163的源列表
deb http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
为原来的sources.list做备份,然后更新源列表,做 update(apt update),仍然发现很多404错误(这是因为源列 表的目录已经更改,即quantal目录已经不存在)
5.进入http://mirrors.163.com/ubuntu/dists 查看发现quantal已经不再存在,而lucid目录存在(如下图所示),并且有与quantal对应的文件和目录,将source.list中quantal全部替换为lucid。
6.做update(apt update)
7.安装ssh server和client, sudo apt-get install openssh-server;sudo apt-get install openssh-client
8.开启ssh服务, etc/init.d/ssh start
9.查看ssh服务状态 ps -ef|grep ssh,发现进程已起
10.putty 连接Ubuntu成功
- putty 连接linux失败---解决方案
- 关于使用putty私钥连接linux出现失败的原因解决方案
- PuTTY连接Linux服务器经常断线解决方案
- putty连接Linux中文乱码解决方案
- 收集的linux远程ssh连接putty失败解决办法!
- xshell/putty 连接 linux 虚拟机 connection failed 的解决方案
- Putty连接Linux服务器
- linux下安卓设备连接失败的解决方案
- 远程SSH连接Putty失败解决办法
- putty连接虚拟fedaro失败的解决方法
- putty用ssh连接linux
- 用Putty连接LInux主机
- Ubuntu Linux putty (Windows连接)
- Linux常用工具Putty ssh连接
- Linux入门 putty连接虚拟机
- 使用putty远程连接linux
- putty无法连接linux虚拟机
- virtualbox下ubuntu与putty连接解决方案
- python,random.random()和random.Random()的区别联系
- spark 训练营 scala学习
- 年底计划
- 最长公共字串(动态规划)
- java基础学习
- putty 连接linux失败---解决方案
- 抓虾的告别信RSS即将退出舞台
- IOS 项目协作开发遇到apple push notification 提示开发者权限enrolled需求提示
- Android控件之Spinner
- 59,对象作为方法参数传递
- 启动ubuntu,出现stopping log initial device creation的解决方法
- LeetCode 125 : Valid Palindrome (Java)
- [转载]kmalloc vmalloc kcalloc kzalloc malloc 和 get_free_page()
- Python将时间为AM的转换为24小时制