When connecting to a server via SFTP, I can use -o
to specify a LogLevel
, like so:
sftp -oLogLevel=DEBUG3 username@host
This spits out a ton of debug information about the login process. However, it gets to this point and all debugs cease:
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
debug2: channel_input_status_confirm: type 99 id 0
debug2: subsystem request accepted on channel 0
Connected to host.
sftp> ls
Some Directories
sftp> cd Some
sftp> ls
sftp> quit
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
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
Received disconnect from <IP>: 11: User Disconnected
What about that ls
command? Where can I get debugs for that? cd
? quit
?
Also, I don't have any control over the remote server, so I'm not asking about configuring the SFTP subsystem on the server via sshd_config
. I've tried that and it doesn't work.
The sftp-client.c
file has calls to debug3, so where are they going?
Use the
-vvv
switch to thesftp
. The options-o
are passed directly to thessh
process but not effective to thesftp
itself.It is well described in the manual page for
sftp
:Also the
-o
explains that it is passed to thessh
and not effective insftp
process: