Tuesday, October 20, 2015

linux - SSH hang at the end of one command

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

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...