tags:

views:

38

answers:

2

On Windows I use PuTTY to log in a remote server via SSH. Is is possible to change the default directory entry point I get to after I connect and login? (That would be a nice time safer)

e.g. from server/home/ to server/home/subdir/subdir

forgot to add that the remote webserver is linux based

A: 
  • Add cd subdir/subdir to ~/.bashrc or ~/.bash_profile, or
  • change the home directory of the user.
Sjoerd
A: 

Depends on a lot of things. Mainly the server operating system. Most SSH servers run Linux or Unix of some flavor. When you connect via any method of remote text login (as SSH is one member of this category) such a system will automatically spawn a shell process to talk to you. That's probably "bash", and it runs various things on startup. Check out

man bash

to learn more. One of the many things you can do is cd to a subfolder.

Ian