1

I have an AWS machine running and would like to transfer files from it to my local machine. Filezilla is successful in listing directories, but for whatever reason refuses to transfer files. So I try it manually:

scp ubuntu@ec2-1-2-3-4.compute-1.amazonaws.com:/home/ubuntu/deep-photo-styletransfer-py/serial_example/best1_t_1000.png /Users/Me/Desktop/foo.png

And receive

TERM environment variable not set.
stty: standard input: Inappropriate ioctl for device
/home/ubuntu/.bashrc: line 4: bind: warning: line editing not enabled
/home/ubuntu
stty: standard input: Inappropriate ioctl for device
/home/ubuntu/.bashrc: line 85: bind: warning: line editing not enabled
/home/ubuntu/.bashrc: line 88: bind: warning: line editing not enabled
/home/ubuntu/.bashrc: line 91: bind: warning: line editing not enabled

When I run echo $TERM, I get xterm-256color on both my local and the AWS machine.

1

As it turns out, the main problem was caused by some commands in my .bashrc (clear;ls;pwd;).

The other errors/warnings relate to bind directives which should only be executed in an interactive shell.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.