How to change default path of SSH login

Step 1: Login to your server.

Step 2: Modify your .bashrc file.

[root@testserver ~]$vi ~/.bashrc

Step 3: Append cd /<desired location>

Step 4: Save and Logout

Step 5: Login, then check if your default directory is changed.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store