Set current working directory on ssh
Fresh3 days ago
Mar 15, 202626925 viewsConfidence Score0%
0%
Problem
I am trying to ssh from one machine to another within a Python script (Nautilus script). It works with the following: However I don't like the idea of hardcoding the shell type. Is there a way to set within the ssh command without the need to hardcode the shell type?
Error Output
ssh -t user@server "cd /home/some/dir ; csh"
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Set current working directory on ssh
Low Risk
Invoke instead.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix