S
S
Sergei Iamskoi2016-05-25 16:48:44
linux
Sergei Iamskoi, 2016-05-25 16:48:44

How to change directory in Debian after ssh login?

By default, the user directory is /home/user, and it should remain so. It is necessary after ssh connection that by default the directory is not [email protected]~ but [email protected]/var/www/site.ru is open. Failed to google. I myself tried to write cd /var/www/site.ru to ~/.bashrc but it doesn't work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2016-05-25
@syamskoy

How about: How can I automatically change directory on ssh login?

T
Timohius, 2016-05-26
@TIMOHIUS

Change the home directory for the user to the one you specified, and you will be happy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question