Thursday, 15 August 2013

How to SSH into a specific directory?

How to SSH into a specific directory?

I frequently login to a server, then cd into a specific directory. Is it
possible to simplify these two commands into one?
ssh bob@foo
cd /home/guest
I'd like to avoid changing anything on 'foo' if possible as I am not the
administrator. I use bash, but I am open to answers in other shells.

No comments:

Post a Comment