scp falha apenas com o usuário root [closed]

1

Eu tenho uma situação estranha onde o scp para um servidor falha, mas apenas quando feito com o usuário root. Eu não entendo qual poderia ser o motivo. O arquivo nunca existe no destino. Aqui está o comando que eu corri no mesmo host, no entanto, ele também falha de controle remoto.

scp -vvv ./test.txt localhost:/home/benedict/test6.txt

Aqui está parte da depuração quando a autenticação for bem-sucedida.

    debug1: Sending command: scp -v -t /home/benedict/test6.txt
debug2: channel 0: request exec confirm 1
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
Agent pid 21657
debug2: channel 0: read<=0 rfd 4 len 0
debug2: channel 0: read failed
debug2: channel 0: close_read
debug2: channel 0: input open -> drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug2: channel 0: input drain -> closed
host-001 20180731-08:05:37 ~
# debug2: channel 0: write failed
debug2: channel 0: close_write
debug2: channel 0: send eow
debug2: channel 0: output open -> closed
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug2: channel 0: rcvd eof
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 4224, received 3104 bytes, in 0.3 seconds
Bytes per second: sent 13181.0, received 9686.0
debug1: Exit status 0
    
por Ben 31.07.2018 / 10:07

0 respostas

Tags