在工作中我们经常遇到这样一个问题,服务器A和服务器B在一个内网中,服务器A有外网ip,但服务器B没有外网ip或者我们只知道服务器B的内网ip。这时候我们要怎么登上服务器B呢? 
假设服务器A和B都有我们的ssh公钥。这时,我们就可以用securecrt先登录服务器A,然后以服务器A为跳板,再登录到服务器B。 
具体操作如下: 
①、Options->Global Options 
②、SSH2 
③、勾上 “Enable Openssh agent forwarding” 

使用securecrt从远程服务器A ssh连接到服务器B

然后用securecrt登上服务器A,在服务器那里输入: 
ssh -p port ip 
其中,port是服务器B的ssh端口,ip是服务器B的内网ip。即可登录服务器B

使用securecrt从远程服务器A ssh连接到服务器B

 

相关文章:

  • 2021-07-21
  • 2021-11-24
  • 2021-10-22
  • 2021-11-10
  • 2021-09-15
  • 2021-09-04
猜你喜欢
  • 2021-08-13
  • 2021-08-27
  • 2021-08-09
  • 2021-11-24
  • 2021-09-28
  • 2021-11-14
  • 2021-08-29
相关资源
相似解决方案