Net::SSH to login into a server with a public key
- From: Ad Ad <codetest123@xxxxxxxxx>
- Date: Fri, 15 May 2009 14:09:40 -0500
Hi,
I have a remote server B which can only accessed via server A through a
public key.
Is there a way to do this in net/ssh ?
I have started an SSH session for A
Net::SSH.start("ServerA","username",:password=>"xyz") do |ssh|
#is there a way to now login into B?
#In putty I just do: ssh B and I am in
end
thanks.
--
Posted via http://www.ruby-forum.com/.
.
- Follow-Ups:
- Re: Net::SSH to login into a server with a public key
- From: Sandor Szücs
- Re: Net::SSH to login into a server with a public key
- From: Delano Mandelbaum
- Re: Net::SSH to login into a server with a public key
- Prev by Date: obj.attr(qualifier) = value -- possible?
- Next by Date: Re: obj.attr(qualifier) = value -- possible?
- Previous by thread: obj.attr(qualifier) = value -- possible?
- Next by thread: Re: Net::SSH to login into a server with a public key
- Index(es):
Relevant Pages
|