Microsoft
Software
Hardware
Network
Question : SSH console: go to specified folder after login
Hi,
I need go to determinate folder after login by SSH to Linux server using only one command.
After login I should be able to input manually some other commands.
I have tried next command without success:
1) ssh root@ubuntuhomeserver cd /media/sda2
This command exit immediately after executing "cd /media/sda2" command.
2) ssh root@ubuntuhomeserver; cd /media/sda2
This command is get logged on ubuntuhomeserver, but not execute "cd /media/sda2" on remote machine.
Best regards
Answer : SSH console: go to specified folder after login
you can also do (assuming your login shell is bash")
ssh -t root@ubuntuhomeserver "cd /media/sda2 ; /bin/bash"
Random Solutions
Add Title or Header to MsgBox in Blue Area
How to open and view a pdf file saved in a blob field in a database Oracle 11g forms
Php array related question
One User Cannot Access Public Folder On Exchange 2007.
ShowMessage
Computer will boot part of the way then stop and cannot reboot
How do I edit a links list styles?
creating a session array for simple cart
Should I create a dynamic disk or not?
DIV issues in IE