Re: ssh to a remote server via gateway server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30May2008 08:31, Mikkel L. Ellertson <mikkel@xxxxxxxxxxxxxxxx> wrote:
> 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.

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 proxycommand
tunnel). Which may solve the -t option issue.

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/ host1\!host2\!host3:some-other-dir/

(You will need the \! on the command prompt line instead of plain ! to
avoid your shell's history substitution syntax - a shell script does
not need the annoying sloshes).

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Our job is to make the questions so painful that the only way to make the
pain go away is by thinking.    - Fred Friendly

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux