8
scp -v source_file_name username@destination_host:destination_folder
unsername 只有是root時,才能成功傳檔案
unsername 為一般帳號,可執行,無錯誤訊息,但檔案就是傳不過去
debug1: Sending command: scp -v -t .
Sending file modes: C0644 0 test1
Sink: C0644 0 test1
test1 100% 0 0.0KB/s 00:00
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 1688, received 2112 bytes, in 0.7 seconds
Bytes per second: sent 2316.2, received 2898.0
debug1: Exit status 0
unsername 為一般帳號時,不會出現傳送狀況(紅色處)