SSH登录之解决端口无响应
来源:互联网 发布:苹果手机变成3g网络了 编辑:程序博客网 时间:2024/05/11 17:40
两台机子,A(ip:192.168.1.106)使用ssh连接B(ip:192.168.1.107),
在A上面输入: 回车后出现:
ssh 192.168.1.107
ssh: connect to host 192.168.1.107 port 22: Connection refused
这个是因为B机上面ssh没有openssh的组件,一般是没有:openssh-server
然后在B机上面安装:
sudo apt-get install openssh-client
sudo apt-get install openssh-server
再然后:在B机上面重启ssh:
sudo /etc/init.d/ssh restart
停止ssh:
sudo /etc/init.d/ssh stop
开启ssh:
sudo /etc/init.d/ssh start
然后以root登录:
ssh -l root 192.168.1.107
然后提示你输入密码:
root@192.168.1.107's password:
之后:
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Welcome to Ubuntu 13.04 (GNU/Linux 3.8.0-34-generic i686)
* Documentation: https://help.ubuntu.com/
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife
New release '13.10' available.
Run 'do-release-upgrade' to upgrade to it.
接下来就可以操作了.
0 0
- SSH登录之解决端口无响应
- 解决SSH登录无响应问题
- ssh无密码登录故障解决
- 安装hadoop之ssh无密码登录
- Linux之ssh无密码登录
- 解决SSH自动断线,无响应的问题。
- 解决ssh连接一段时间后光标无响应问题
- 解决SSH自动断线,无响应的问题
- 解决ssh连接一段时间后光标无响应问题
- SSH学习之三 SSH与SCP无密码登录
- 修改ssh登录端口
- ssh无密码登录
- SSH 无密码登录
- ssh无钥登录
- ssh无密码登录
- 无密码ssh登录
- ssh 无密码登录
- ssh无密码登录
- 2013年11月系统架构设计师考试总结及新年期盼
- SGU118 数学题 Math
- 一些常用对象的区别(更新中)
- PHP判断变量是否为0
- 名词王国里的死刑(翻译) - A Story of Hello World
- SSH登录之解决端口无响应
- 2014年起步
- DEDECMS联动添加三级后无法添加二级分类的解决方案
- JDK1.7在Ubuntu环境下的安装配置
- UVa:10806 Dijkstra, Dijkstra.
- Effective C++ --5 实现
- chrome书签重复啿
- 用命令行编译和运行java类的注意事项
- c 中的动态分配内存空间