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
restore emails database from outlook to exchange2000
Copy/Paste Relative to other column's number of rows
How do I find out what version of AjaxControlToolkit is installed on my server?
Show all the table row data linked to the result of a query selection in the mainform
Message getting stuck in deffered delivery
Oracle SQL GROUP BY
select * in view
aspnet, gridview.. Trimming the data in the bound controls
Looking for detailed comparisons/recommendation
s as to whether corporations should upgrade from Excel 2003 to Excel 2010 versus 2007
word/excel don't show any printers on terminal server, but outlook/notepad/IE/etc work perfectly