码迷,mamicode.com
首页 > 系统相关 > 详细

ssh远程登录linux live系统

时间:2014-06-01 10:32:07      阅读:304      评论:0      收藏:0      [点我收藏+]

标签:c   class   blog   code   tar   a   

要想ssh远程登录,需要准备两件事:配置同网段IP和开启SSH服务。


由于live系统没有IP,所以首先需要配置IP。

我的live系统是在虚拟机上启动的,宿主IP为192.168.230.1,live系统的IP我设置为192.168.230.180:

#ifconfig eth0 192.168.230.180

然后在SecurityCRT上连接live系统,输入密码时发现live系统也没有用户密码。这时候若不输密码或者随便输入一个密码,SecurityCRT也是不让连接的。所以需要在live系统上配置密码,live系统默认是root用户登录。使用passwd命令修改密码。


接下来输入密码连接会输出如下失败信息,因为live系统的SSH服务没有开启:

The remote system refused the connection.


接下来开启live系统的SSH服务:

#/etc/rc.d/init.d/sshd start


接下来再用使用SecurityCRT连接就成功了:

Last login: Sat May 31 13:14:34 2014
lfslivecd:root | Sat May 31 13:24:42 2014 | ~
#


总结一下,总共有三步:

1、配置IP

2、设置root密码

3、开启SSH服务


注:

若先开启SSH服务,后设置root密码,则需要在设置root密码后重新启动SSH服务。

ssh远程登录linux live系统,布布扣,bubuko.com

ssh远程登录linux live系统

标签:c   class   blog   code   tar   a   

原文地址:http://blog.csdn.net/wangyuling1234567890/article/details/27809905

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!