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?
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?
Last edited by sandyd; October 3rd, 2013 at 07:39 PM. Reason: fixed wording
'pwd' will display the name of the current working directory.
I'm not understanding the first and third question.
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 ~.
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
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
What ya need my signature for? It's not like it's my last will, or something!
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.
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
ctrl+d will exit too.
Bookmarks