How can I ssh directly to a particular directory?

前端 未结 12 2099
情话喂你
情话喂你 2020-12-07 07:03

I often have to login to one of several servers and go to one of several directories on those machines. Currently I do something of this sort:

localhost ~]$ ssh          


        
12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 07:42

    SSH itself provides a means of communication, it does not know anything about directories. Since you can specify which remote command to execute (this is - by default - your shell), I'd start there.

提交回复
热议问题