sftp, scp or rsync don't work if your login shell is zsh

Web hosting discussion, programming, and shared and dedicated servers.
3 posts Page 1 of 1
by bakul » Mon Aug 06, 2012 2:44 pm
This is what happens:

Code: Select all

$ scp testfile shell.sonic.net:public_ftp/outgoing
editor () {
$ stdin: is not a tty
I see basically the same thing with rsync and sftp.

I tracked this down to line 99 in /etc/profile. This file gets included from /etc/zshenv, which is run when you login and if your login shell is zsh. Functions needed for interactive use should not be included like this, breaking scripts.

I can't even change my login shell to test this theory!

Can some sysop staff person please fix this? Thanks!
by augie » Tue Aug 07, 2012 5:24 pm
I've commented out the line in /etc/zshenv ; let us know if that helps.
by bakul » Wed Aug 08, 2012 12:29 am
augie wrote:I've commented out the line in /etc/zshenv ; let us know if that helps.
That fixes the problem. Thanks very much!
3 posts Page 1 of 1

Who is online

In total there are 17 users online :: 0 registered, 0 hidden and 17 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: No registered users and 17 guests