<br><br><div class="gmail_quote">On Mon, Jun 2, 2008 at 4:38 PM, Cameron Simpson <<a href="mailto:cs@zip.com.au">cs@zip.com.au</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 02Jun2008 16:23, lux <<a href="mailto:yuanlux@gmail.com">yuanlux@gmail.com</a>> wrote:<br>
| > >> I have a script called "sshto" that does exactly this for multihop ssh<br>
| > >> connections. Very handy, especially since you can make "sshto" the<br>
| > >> default transport for rsync, letting you do multihop rsyncs easily:<br>
| > >><br>
| > >>   rsync some-dir/ host1\!host2\!host3:some-other-dir/<br>
| > ><br>
| > > It sounds like you have experience with what he is trying to do, so<br>
| > > please continue to advice the OP. What he is does now is ssh to PC A, and<br>
| > > then ssh to PC B. What he wants to ssh to PC B in one command, but he has<br>
| > > to go through PC A. (firewall machine?)<br>
| ><br>
| > Then he definitely wants sshto:<br>
| ><br>
| >  <a href="http://www.cskk.ezoshosting.com/cs/css/bin/sshto" target="_blank">http://www.cskk.ezoshosting.com/cs/css/bin/sshto</a><br>
| ><br>
| > Conveniently, it can make use of an sshtorc file that maps "name" into an<br>
| > arbitrary "name1!name2!name3!..." ssh hop path. I routiney get only<br>
| > certain hosts as "sshto foo" where "foo" designates a multihop ssh path.<br>
|<br>
| Sounds a  very interesting tool. I gave it a try. But<br>
| what is shqstr?<br>
| looks a like a command, but not in my system<br>
<br>
</div>Yeah, sshto shamelessly uses other scripts from that same collection.<br>
Shqstr quotes strings for handing to eval/sh/remote-ssh intact.<br>
<br>
The simplest thing is to go to:<br>
<div class="Ih2E3d">  <a href="http://www.cskk.ezoshosting.com/cs/css/" target="_blank">http://www.cskk.ezoshosting.com/cs/css/</a><br>
</div>and download the tarball, unpack into /opt/css. Source /opt/css/env.sh<br>
to fix up your $PATH (it appends, so as not to preempt any of your<br>
normal commands or libraries). Then retry.<br>
<br>
Please let me know if you have further trouble; this stuff is _meant_ to be<br>
usable by people who aren't me:-)<br>
<div class="Ih2E3d"><br>
Cheers,</div></blockquote><div><br>Thanks a lot, I will try it. I followed your hint of ProxyCommand<br><br>here is the .ssh/config file:<br><br>Host labpc<br>        ProxyCommand ssh  lux@gw -t -w 3 labpc 22<br><br>When <br>
<br>ssh labpc <br><br>I got two layers of prompt for login. there were possible outputs:<br><br>1st, sometime, I got login to labpc , but it last 1 or 2 seconds, and  get discconetctd with this message:Connection to labpc closed by remote host.<br>
<br>the 2nd output is failure to login and got this message:<br>Write failed: Broken pipe<br><br>any suggest? thanks<br><br>Y<br><br> <br> <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
--<br>
Cameron Simpson <<a href="mailto:cs@zip.com.au">cs@zip.com.au</a>> DoD#743<br>
<a href="http://www.cskk.ezoshosting.com/cs/" target="_blank">http://www.cskk.ezoshosting.com/cs/</a><br>
<br>
</div>When Microsoft Office is your only hammer, pretty much everything begins to<br>
look like a nail. Or a thumb. - Rob Pegoraro<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="Wj3C7c">fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
</div></div></blockquote></div><br>