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
PHP: use variable in function name?
Excel VBA: isolate text in parentheses
video and music stutter
How to capture data from website into c#
Hyperlink in Word Document
lstbox.selectedindex changed error when cbobox1.selectedvalue = lstbox1.selectedvalue
Multi Language spell check in Office 2007
Nortel BCM50 wiring schematic
How can i solve "The query results cannot be enumarated more than once"
VB Script: Output specific text from text file