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
Can the Top position of an object be moved into a position where a ToolStrip was that got set invisible?
Progress Bar will not fire while tree is loading in vb.net windows application
Change $NtUninstall path permanently
S/MIME Control Out of Date.
System.Data.DataRowView getting Inserted into SQL Server
HDD Problems
Configuring SMTP for application
access 2000 export to excel from form
Securing Exchange with another companies Exchange server
Audio Mixer Control - CALLBACK VB net