您的位置:首页 > 其它

windows 系统通过 puttty软件 SSH 登陆 Ubuntu

2016-07-13 23:57 337 查看

windows 系统通过 puttty软件 SSH 登陆 Ubuntu

1.在Ubuntu上 安装 ssh-server

sudo apt-get install openssh-server

2. 查看ssh-server状态

ps
-e | grep ssh

如果出现
sshd 则表示已启动
如果未启动, 输入sudo /ect/init.d/ssh start.
或者 sudo
/ect/init.d/ssh restart

3.进行ssh-server配置

打开sshd_config文件
gedit
/etc/ssh/sshd_config
其中 port 22 为端口,可以自己修改,最好大于20000.
将PermitLogin without-password 注释掉
即改为 #PermitLogin
without-password
之后,再输入PermitLogin
yes

4.查看本机IP

ifconfig
无线连接:查看 wlan
有线连接:查看 eth0

5.在putty客户端输入对应ip数据,端口数据即可

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: