by
0
5
2,251
0
Top 1% !
Popular
Famous
Tagged
Easy-to-find
Popularity: 9917th place
This snippet is Public
LicenseMIT_X11

Linux SSH remote shell cmd

This command allows to execute a cmd or script in a xterm shell remotely on another machine via ssh. Xterm will popup showing the cmd execution
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/296/Linux-SSH-remote-shell-cmd?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
ssh -Y <HOSTNAME> xterm -bg DarkBlue -fg white -geometry 128x24 -sl 200000 -hold -T <TERM_TITLE> -exec '<CMD_or_SCRIPT>'
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus