💻 Software
With ssh, how can you run a command on the remote machine WITHOUT EXITING?
Fresh7 days ago
Mar 15, 202683727 viewsConfidence Score0%
0%
Problem
Normally, if you pass a command to ssh like so You get a non-interactive session, and ssh exits as soon as the command (or script, or whatever) is run. How can I get an interactive session, and yet run a command that I've specified from my local machine. For instance, I'd like to be able to open sc…
Error Output
ssh me@example.com 'some-command.sh'
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: With ssh, how can you run a command on the remote machine WITHOUT EXITING?
Low Risk
You can try the following command to start up bash and source your own profile when you ssh:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix