You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
is there a way to run a remote command without to start a shell?
It would be usefull with something like this:
ssh my-user@remote-host sudo su - tech-user
in this way, exiting as tech-user the session will end; it can be done with login scripts as well, but in that case a shell is started for both users; exiting as tech-user you will be still connected as my-user.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
is there a way to run a remote command without to start a shell?
It would be usefull with something like this:
in this way, exiting as
tech-user
the session will end; it can be done withlogin scripts
as well, but in that case a shell is started for both users; exiting astech-user
you will be still connected asmy-user
.Thanks
Beta Was this translation helpful? Give feedback.
All reactions