How to change default path of SSH login



  1. Login to your server.
  2. Let’s check your default location using pwd.
    Default directory
  3. Modify your .bashrc file.
    [root@testserver ~]$vi ~/.bashrc
  4. Append the cd /<desired location>.
    Change directory
  5. Save
  6. Logout/exit.
  7. Login again then check if your default directory is changed.

Leave a Reply

Your email address will not be published. Required fields are marked *