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
Default selected item for drop down list box
Adding sound to bouncing ball with AS3
Can I purge trash on exit?
ie8 img border transparent gif bug
Change Color Category to Appointment in VBA
Problem with Recycler Folder !!!
How to manage permissions for my helpdesk team
Set up a Site-To-Site VPN between 2 CISCO ASA 5505
DNS Zones not AXFR'ing from primary
Centering text in header of collapsible panel