Sample Header Ad - 728x90

How to enable using commands on remote host using ssh without password?

3 votes
2 answers
3318 views
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
Asked by Charles nakhel (185 rep)
Dec 16, 2014, 09:25 AM
Last activity: Sep 1, 2017, 02:15 AM