I am trying to transfer a file from my local machine to a remote machine.
When I use scp without -v option it gives only following output:
.--. or '\033[0;1;33;93m.-\033[0;1;32;92m-.\033[0m'
When I try scp with -v option I get following output, seems files transferred succesfully:
--
$ scp -v file.sh user@IP:/home/user/foo
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: Sending environment.
debug1: Sending env LC_PAPER = tr_TR.UTF-8
debug1: Sending env LC_ADDRESS = tr_TR.UTF-8
debug1: Sending env LC_MONETARY = tr_TR.UTF-8
debug1: Sending env LC_NUMERIC = tr_TR.UTF-8
debug1: Sending env LC_ALL = en_US.UTF-8
debug1: Sending env LC_TELEPHONE = tr_TR.UTF-8
debug1: Sending env LC_IDENTIFICATION = tr_TR.UTF-8
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending env LC_MEASUREMENT = tr_TR.UTF-8
debug1: Sending env LC_CTYPE = UTF-8
debug1: Sending env LC_TIME = tr_TR.UTF-8
debug1: Sending env LC_NAME = tr_TR.UTF-8
debug1: Sending command: scp -v -t /home/user/foo
.--.
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 2504, received 2668 bytes, in 1.7 seconds
Bytes per second: sent 1510.2, received 1609.1
debug1: Exit status 0
Please see sshd_config file here. Please note that I can ssh into the remote machine. Also ssh user@IP pwd returns /home/user.
[Q] scp successfully transfers file but it does not show up on the remote machine. What might be the reason for this and how could I solve it?
lson the folder path at remote machine, it returns nothing. @Andrew Henle – alper May 01 '18 at 09:51sshdconfiguration files on the remote machine? If so, you should post the contents of those files here. – Andrew Henle May 01 '18 at 09:54file.sh- or does its name use characters from a different locale? – steeldriver May 01 '18 at 12:42helloworld.txtbut didn't help. @steeldriver – alper May 01 '18 at 12:51ls -l /home/user/fooshow? – Andrew Henle May 01 '18 at 13:48total 0:( @AndrewHenle – alper May 01 '18 at 13:54ssh user@IP pwd; returns/home/user. @roaima – alper May 01 '18 at 14:24ls /home/user/fooat the remote host. Yes directory calledfooexists @roaima – alper May 01 '18 at 15:52# If not running interactively, don't do anything [[ $- == *i* ]] || returnon top of my.bashrcfile solved the problem! @ Anthony Geoghegan – alper May 11 '18 at 17:33