secure远程控制Linux,SSH Secure Shell Client—远程控制linux工具

此工具可以使用命令远程控制Linux,而且可以方便地与Linux系统进行文件的交互,使其在Linux与Windows之间搭起一座便捷的桥梁。

Ubuntu安装使用SSH

ubuntu默认并没有安装ssh服务,如果通过ssh链接ubuntu,需要自己手动安装ssh-server。判断是否安装ssh服务,可以通过如下命令进行:

xjj@xjj-desktop:~$ ssh localhost

ssh: connect to host localhost port 22: Connection refused

xjj@xjj-desktop:~$ ssh localhost ssh: connect to host localhost port 22: Connection refused

如上所示,表示没有还没有安装,可以通过apt安装,命令如下:

xjj@xjj-desktop:~$ sudo apt-get install openssh-server

xjj@xjj-desktop:~$ sudo apt-get install openssh-server

系统将自动进行安装,安装完成以后,先启动服务:

xjj@xjj-desktop:~$ sudo /etc/init.d/ssh start

xjj@xjj-desktop:~$ sudo /etc/init.d/ssh start

启动后,可以通过如下命令查看服务是否正确启动

xjj@xjj-desktop:~$ ps -e|grep ssh

6212 ?        00:00:00 sshd

xjj@xjj-desktop:~$ ps -e|grep ssh 6212 ? 00:00:00 sshd

如上表示启动ok。注意,ssh默认的端口是22,可以更改端口,更改后先stop,

然后start就可以了。改配置在/etc/ssh/sshd_config下,如下所示。

xjj@xjj-desktop:~$ vi /etc/ssh/sshd_config

# Package generated configuration file

# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for

Port 22

xjj@xjj-desktop:~$ vi /etc/ssh/sshd_config # Package generated configuration file # See the sshd(8) manpage for details # What ports, IPs and protocols we listen for Port 22

最后,应该是连接的时候了。请看如下命令:

xjj@xjj-desktop:~$ ssh exceljava@192.168.158.129

xjj@xjj-desktop:~$ ssh 原帖 http://exceljava.javaeye.com/blog/367193

========================================================

windows 安装客户端软件使用SSH Secure Shell Client远程控制Linux

(1) 安装SSH Secure Shell Client。

在window系统中安装SSH Secure Shell Client软件

(2) 启动SSH Secure Shell Client。

SSH Secure Shell Client完毕后,桌面会出现两个图标:

双击第二个图标,启动SSH Secure Shell Client程序,出现如图所示界面:

(3) 点击Quick Connecticut,进入连接界面

在Host Name中填写Linux主机IP地址,User Name中填写Linux下的用户名(一般不用Root用户,除非对此用户进行设置后方可),其它两项不必改动。

(4) 点击Connect按钮,出现输入密码提示,输入密码,进入Linux系统。用户就可以使用命令对Linux系统进行控制了。

使用SSH Secure Shell Client与Linux进行文件交互

(1)       启动SSH Secure Shell Client并登陆Linux系统

(2)       点击Quick Connect并输入相应内容

该文件传输客户端的左面是本地文件,右面默认是登陆用户的目录。此时,用户就可以进行文件传输了。如果用户在使用过程中出现传输错误,请确认你使用的用户对文件拥有足够的权限。

使用过程中可能会遇到乱码的问题:由于linux和windows的编码存在差异,所以会造成乱码现象。上网找了好久,好像是没有什么好的解决办法。如果是在linux下的,好像是可以改的。

====

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值