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
Is there a problem with using temporary tables in a sql Insert/Update Trigger
SQL 'WHERE' Statement
Using the Plugin More Fields and having trouble with Post Types
remote desktop in xp
Remove Private Calendar Invitation in Outlook 2003
Where can I download the BNA Income Tax Planner program from?
VB Script help needed !
How do I program my Access 2007 to export data automatically at different times throughout the day? i.e.10:00 am, 1:00 pm, 4:00 pm 7:00 pm
Access Query
How do I reset a VERY stubborn default (htm/html)?