[TriLUG] SSH config for remote command

Cristóbal Palmer cristobalpalmer at gmail.com
Wed Jun 4 22:52:01 EDT 2008


On Wed, Jun 4, 2008 at 7:42 PM, Michael Hale <mikehale at gmail.com> wrote:
>
> I have been running this command to login to 'bob' which is on the
> other side of my firewall using the firewall as a gateway.
>  'ssh -t firewall ssh -t bob'
>
> I was wondering if there is something I can put in my .ssh/config such
> that I could just do this:
>  'ssh bob' or even 'scp bob:file .'

Why not just put this in your .bashrc:

alias blh='ssh -t firewall ssh -t bob'

Cheers,
--
Cristóbal M. Palmer
http://tinyurl.com/3apraw "They also abandoned other volumes, later,
while fleeing from the librarians."


More information about the TriLUG mailing list