经过SecureCRT实现window和linux的编译交互

第一步:ubuntu下如何安装使用SSH?

ubuntu默认并无安装ssh服务,若是经过ssh连接ubuntu,须要本身手动安装ssh-server。判断是否安装ssh服务,能够经过以下命令进行:java

@-desktop:~$ ssh localhostubuntu

ssh: connect to host localhost port 22: Connection refusedssh

如上所示,表示没有尚未安装,能够经过apt安装,命令以下:spa

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

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

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

启动后,能够经过以下命令查看服务是否正确启动htm

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

6212 ?        00:00:00 sshd  get

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

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

而后start就能够了。改配置在/etc/ssh/sshd_config下,以下所示。

@-desktop:~$ gedit /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  

# Package generated configuration file

# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for

Port 22

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

@-desktop:~$ ssh exceljava@192.168.158.129  

@-desktop:~$ gedit /etc/ssh/sshd_config



第二步:

在window上下载安装secureCRT。


注意1.属性设置ssh2 


参考:

http://blog.csdn.net/u011570979/article/details/17513041

相关文章
相关标签/搜索