SSH Command Execution Hangs, although interactive shell functions fine

前端 未结 7 1609
庸人自扰
庸人自扰 2020-12-29 23:03

When I attempt to execute a command on a remote server with ssh, the ssh command hangs after the exec request accepted debug message, and eventually times out.<

相关标签:
7条回答
  • 2020-12-29 23:34

    I had this problem on fedora server 22, after the resolution of other new problems.

    ssh -t ziimp /bin/true was ok but not ssh ziimp /bin/true and all my git+ssh and scp were locked.

    The solution i found was in the authorized_keys file. I had to remove the command="/usr/bin/bash" prefix from my trusted keys...

    0 讨论(0)
提交回复
热议问题