M
M
Mikhail Gavrilyuk2020-09-21 11:13:20
SSH
Mikhail Gavrilyuk, 2020-09-21 11:13:20

What needs to be done to immediately get to the right folder when connecting via ssh to a remote server (hosting)?

I am using GitBash. I connect to the hosting via ssh. At connection I get to the general directory.
And it would be desirable to get at once in a root of a certain site. How can this be configured?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Gavrilyuk, 2020-09-26
@Ameon

Michael answered the question.
Created a .profile file .
In it he wrote:
cd <путь к нужной папке>

B
BorLaze, 2020-09-21
@BorLaze

ssh -t [email protected] "cd DIR ; bash"

Z
zersh, 2020-09-21
@zersh

if bash shell
add ~/.bashrc to the end

cd /path/to_folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question