What is the ssh command mode when you connect to a server?
Where is the directory you are?
What is the command to get it out?
Printable View
What is the ssh command mode when you connect to a server?
Where is the directory you are?
What is the command to get it out?
'pwd' will display the name of the current working directory.
I'm not understanding the first and third question. :confused:
When you connect to a server with ssh, you will get your regular login shell as it is configured on your server. When your session starts you will be in your home directory on the server, whatever that is set to be. See pwd above.
To end your ssh session with the server you can just close the terminal window or else type exit or on a new line enter ~.
If I understood the question correct, you want to know how to connect to a server with ssh? You wanna know what directory you end up in? and how to get out.
1 You connect to a server trough a terminal, if you are in Linux. Press ctrl+alt+T and typeGive your password and press enter.Code:ssh username@server
2 To see what directory you ended up in, type3 To get out and leave the server, typeCode:pwd.
Code:exit
It should be an ssh client thing, but maybe only with the regular ssh client. PuTTY is a different animal. If you look in the manual page for ssh(1) in the section "escape characters" or press ~? you should see the full list. You can add or remove port forwarding and levels of verbosity that way too.
ctrl+d will exit too.