Date: Fri, 3 Dec 2010 16:43:31 -0800 (PST) From: Josh Suid <joshsuid@yahoo.com> To: freebsd-questions@freebsd.org Subject: ssh interactive session, through intermediate hosts ... problems ... Message-ID: <894762.38692.qm@web114415.mail.gq1.yahoo.com>
next in thread | raw e-mail | index | archive | help
I connect to some systems via a series of ssh "jumps" - something like:
# ssh user@host
Password:
host~/ # ssh user@host2
Password:
host2~/ # ssh user@host3
Password:
host3~/ # (do some work)
This is working well for me and does what I want it to. However, there are
some things I'd like to do that are not working well for me...
First, where on the ssh client command line (see above) can I specify a more
liberal timeout value ? Since my interactive session has three or more layers
of host between it, the whole thing falls apart if even one link slows down a
bit... how can I make my ssh sessions more tolerant to timeouts ?
Alternatively, since I control all of these systems, is there a global
FreeBSD setting (sysctl ?) that would do this ?
Second, how can I construct this session with just a single command ? When I
try this:
ssh user@host ssh user@host2 ssh user@host3
I get this error:
# ssh user@host ssh user@host2
Pseudo-terminal will not be allocated because stdin is not a terminal.
Permission denied (publickey,keyboard-interactive).
Is there a way to build this tunnel with a single command ? (an ssh command,
run over an ssh command, run over an ssh command)
Finally, is there a way to scp a file over intermediate hosts ? That is to
say, I want to scp the file: user@host:/some/file to myself, but I want
the ssh session to go through hosts X and Y first ... there must be a way
to do this where you pipe the output of scp over ssh to ... head spinning...
Thanks a lot.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?894762.38692.qm>
