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
cfapplication sessionTimeout question
VBA Error Handler when excel sheet does not exist
Default VLAN issues on a Powerconnect 6200
How do I set a form to open when Access 2007 and/or 2010 opens a data base?
where can I download openwave phone simulator?
Emails not being sent or recieved
Is a trust required for ADMT?
Excel 2007 Slow on one spreadsheet but only on one PC
Accessing a Sharepoint foundation 2010 site from a pc not connect to the same AD
juniper firewall ssg140