Chapter 3: SSH Client Commands __Linux 101 Hacks

Chapter 3: SSH Client Commands 

        __Linux 101 Hacks

Hack 12. Identify SSH Client Version

 

 
  
$ ssh - V
OpenSSH_3.9p1, OpenSSL
0.9 .7a Feb 19 2003

 

The following example indicates that this particular system is using SSH2:

 

 

 
  
$ ssh - V
ssh: SSH Secure Shell
3.2 . 9.1 (non - commercial version)
on i686
- pc - linux - gnu

 

 

 

Hack 13. Login to Remote Host using SSH

 

 
  
localhost$ ssh - l jsmith remotehost.example.com

 

 

 

Hack 14. Debug SSH Client Session

 

 
  
localhost$ ssh - l jsmith remotehost.example.com

warning: Connecting to remotehost.example.com failed:
No address associated to the name

 

 
  
locaclhost$ ssh - v - l jsmith remotehost.example.com

 

 

 

Hack 15. Toggle SSH Session using SSH Escape Character

come back to the localhost to perform some activity and go back to remote host again.

 
  
localhost$ ssh - l jsmith remotehost

remotehost$

remotehost$
~^ Z
[
1 ] + Stopped ssh - l jsmith remotehost

localhost$

localhost$ jobs
[1]+ Stopped ssh -l jsmith remotehost

localhost$ fg %1
ssh -l jsmith remotehost

remotehost$

 

Hack 16. SSH Session Statistics using SSH Escape Character

 
  
localhost$ ssh - l jsmith remotehost

# type ssh escape character ~ followed by s


# Note: The ~s is not visible on the command line when you type.

 

转载于:https://www.cnblogs.com/way_testlife/archive/2010/09/17/1829425.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值