个人博客转至:tybai.com

无聊就想打码,打码使我快乐


Fork me on GitHub

xshell连接ubuntu

安装了 ubuntu-14 ,为了连接 xshell ,做出的一些配置如下:

1.激活root用户

sudo passwd root

设置新密码,设置成功后会有提示 passwd:password updated sucessfully

2.安装ssh服务

apt-get install ssh

3.设置root密码登陆

vi /etc/ssh/sshd_config

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes

改成:

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

4.使配置生效

安装完毕后重启 ssh 服务:

重启

or

service sshd start

or

/etc/init.d/sshd start

5.验证ssh是否开启

ps -ef | grep ssh

最后就可以用 xshell 连接了

以下为找到 ubuntu 控制台位置:

找到按钮:

点击第二个:

点击第二行:

找到控制台:

打开,在桌面右键 -> Lock to Launcher

posted on 2017-06-13 09:24  TTyb  阅读(264)  评论(0编辑  收藏  举报

导航


不用多久

我就会升职加薪

当上总经理

出任CEO

迎娶白富美

走上人生巅峰

Pulpit rock