i set up to use ssh between two hosts without password.
ssh log in is working fine but execute commands failed with the below erro:
**isn't allowed to be executed with process or redirect controls.**
Simple command used:
ssh remo-tehost " echo \"\test\" >> \"/home/alarmstest.log\" "
Running trace i got:
debug1: Sending command: echo "test" >> "/home/alarmstest.log"
debug2: channel 0: request exec confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
debug2: channel 0: rcvd ext data 117
there is sudosh on the remote server for the user used user:x:500:500::/home/user:/usr/local/bin/sudosh authorized_keys from the remote server + key inside -rw------- 1 user user 9092 Dec 13 07:53 authorized_keys
sshworking fine, however runningsshwith commands not working ... not the same case in this questionsudoshinstalled? Does the remote user have that as the shell, or is it a forced command? Show the remoteauthorized_keysfile (add the additional info to your question, don't put it in a comment).