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

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

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

@-desktop:~$ ssh localhost

ssh: connect to host localhost port 22: Connection refused

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

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

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

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

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

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

6212 ?        00:00:00 sshd  

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

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

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

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




第二步:

在window上下载安装secureCRT。


注意1.属性设置ssh2 


参考:

http://os.51cto.com/art/201109/291634.htm


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值