Results 1 to 2 of 2
HEllo All , I am trying to SSH onto a remote server and execute a command on it. if i do it in two steps, 1st step for simple ssh ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-27-2012 #1
- Join Date
- Apr 2009
SSH issues with a remote server
HEllo All ,
I am trying to SSH onto a remote server and execute a command on it. if i do it in two steps, 1st step for simple ssh and as a second step executing the actual command on the machine, it all works fine.
But if i try to do it one line as follows:
<<<<< ssh -l user 10.127.67.36 "show sip invite" >>>>>>>>>
It does not work and i receive the following message after i enter the password:
Received disconnect from 10.127.67.36: 11: Logged out
Please suggest, what could be the issue here.
Thanks in advance.
- 04-27-2012 #2
Syntax for running command on a remote host:
ssh [USER-NAME]@[REMOTE-HOST] [command or script]
The adventure of a life time.
Linux User #296285