Below command is not coming out :

ssh -x -l root  asr-bng-ubuntu "/usr/local/sbin/radiusd"

But process is getting started when i checked in console. Able to execute same command(/usr/local/sbin/radiusd) in console with no issues Also other commands are getting executed through ssh ( like ssh -x -l root asr-bng-ubuntu "ls")

The debug output from -vvv is this:

root@asr-bng-ubuntu's password: 
debug3: packet_send2: adding 64 (len 55 padlen 9 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug1: Sending command: /usr/local/sbin/radiusd
debug2: channel 0: request exec confirm 0
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0  ------>Hangs here
  • what happens if you drop the -x from that line ? Does it change behavior ?
    – MelBurslan
    Apr 30, 2014 at 22:05

1 Answer 1


Your command works correctly, ssh is waiting for the termination of the command to close the connection.

Look at this question on serverfault. And try the following:

ssh -x -l root server "/usr/local/sbin/radiusd &"
  • Same ssh remote command works for diff machine.Wondering how that works ? Also same command (/usr/local/sbin/radiusd) works without any delay on console
    – agnel
    May 2, 2014 at 5:30
  • If you have different results for different machines, you may want to try and unify the environment each daemon runs in at least for the sake of troubleshooting. If you use Centos/RHEL/Fedora, you may want to use /sbin/service radius start. Otherwise you can try to embed the call to the daemon in a script in which you could dump the environment (env >> /path/to/log/myscript.log) May 4, 2014 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.