bergman on 29 Oct 2015 12:53:56 -0700

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

[PLUG] tunneling ssh login sessions (Was: Re: some bash help)

In the message dated: Wed, 28 Oct 2015 14:11:22 -0400,
The pithy ruminations from Carl Johnson on 
<Re: [PLUG] some bash help> were:
=> i tried swapping out the"/bin/bash" for "ssh -l serveradmin x.x.x.x" and it
=> doesn't work. i wish it did 'cause that would've surely make this this much

In the absence of any useful detail, such as an error message, I'm
guessing that "it doesn't work" because /bin/ssh is not listed in
/etc/shells as a potential login shell.

As many people have suggested, using ~user/.ssh/authorized_keys to force
the internal ssh connection is a better method.

If you're using this to initiate one ssh session from another, you may
also need one-or-more instances of the "-t" option in order to force
allocation of a pseudo-tty, which programs that do screen manipulation
(editors, /bin/passwd, anything that plays with cooked mode terminal
access, curses, etc) might want. You may even need "-X -Y", depending on
how you feel about X11 tunneling between the admin's desktop and serverB.

You can also do clever^H^H^H^H^H^H ugly things with 'nc' to set up internal tunnels...


Mark Bergman    Biker, Rock Climber, SCUBA Diver, Unix mechanic, IATSE #1 Stagehand
'94 Yamaha GTS1000A^2

I want a newsgroup with a infinite S/N ratio! Now taking CFV on:
15+ So Far--Want to join? Check out: 
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --