Re: ssh to a remote server via gateway server

2008-06-02 Thread lux
On Sat, May 31, 2008 at 1:57 PM, Cameron Simpson [EMAIL PROTECTED] wrote: On 30May2008 19:14, Mikkel L. Ellertson [EMAIL PROTECTED] wrote: Cameron Simpson wrote: I missed the start of this thread, but you can use the ProxyCommand ssh option to hop through multiple servers, keeping the top

Re: ssh to a remote server via gateway server

2008-06-02 Thread Cameron Simpson
On 02Jun2008 16:23, lux [EMAIL PROTECTED] wrote: | I have a script called sshto that does exactly this for multihop ssh | connections. Very handy, especially since you can make sshto the | default transport for rsync, letting you do multihop rsyncs easily: | | rsync some-dir/

Re: ssh to a remote server via gateway server

2008-06-02 Thread Cameron Simpson
On 03Jun2008 10:31, lux [EMAIL PROTECTED] wrote: | On Mon, Jun 2, 2008 at 4:38 PM, Cameron Simpson [EMAIL PROTECTED] wrote: | On 02Jun2008 16:23, lux [EMAIL PROTECTED] wrote: | | I have a script called sshto that does exactly this for multihop | ssh | | connections. [...] | | Sounds a

Re: ssh to a remote server via gateway server

2008-05-30 Thread Mikkel L. Ellertson
lux wrote: I'm not sure that Mikkel's solution will work: Pseudo-terminal will not be allocated because stdin is not a terminal will be the error message. You can try adding the -t option to the command to run on PC A. Mikkel -- Do not meddle in the affairs of dragons, for thou art

Re: ssh to a remote server via gateway server

2008-05-30 Thread Cameron Simpson
On 30May2008 19:14, Mikkel L. Ellertson [EMAIL PROTECTED] wrote: Cameron Simpson wrote: I missed the start of this thread, but you can use the ProxyCommand ssh option to hop through multiple servers, keeping the top level ssh nicely connected to your terminal and the endpoint (via the

Re: ssh to a remote server via gateway server

2008-05-30 Thread Cameron Simpson
On 31May2008 13:57, I wrote: | Conveniently, it can make use of an sshtorc file that maps name into an | arbitrary name1!name2!name3!... ssh hop path. I routiney get only | certain hosts as sshto foo where foo designates a multihop ssh path. s/only/onto/ Whoops. -- Cameron Simpson [EMAIL

Re: ssh to a remote server via gateway server

2008-05-30 Thread Patrick O'Callaghan
On Sat, 2008-05-31 at 13:58 +1000, Cameron Simpson wrote: On 31May2008 13:57, I wrote: | Conveniently, it can make use of an sshtorc file that maps name into an | arbitrary name1!name2!name3!... ssh hop path. I routiney get only | certain hosts as sshto foo where foo designates a multihop ssh

Re: ssh to a remote server via gateway server

2008-05-29 Thread Mikkel L. Ellertson
lux wrote: Hi, I routinely login a remote server via a 'gateway' machine. For example, I need to login to PC B using ssh. But this PC B is behind a firewall.ssh port on PC A is open. As a result, I have to login PC A via ssh, then ssh PC B from PC A. Is there ssh command line option that I