Subject: Re: scp and IOCTL error
To: None <shnek@tiscali.cz>
From: Theo de Raadt <deraadt@cvs.openbsd.org>
List: netbsd-users
Date: 04/03/2004 07:51:16
> for several days, i can see mesage
> stty: TIOCGETD: Inappropriate ioctl for device
> when using scp to copy files remotely from/to my machine, i.e.
> scp some.file mymachine:
> scp mymachine:some.file .
> 
> the only change in my configuration was (i'm using /bin/ksh) moving 
> everything from .profile to .kshrc, leaving only ENV=$HOME/.kshrc in my 
> .profile
> 
> what is wrong here? thanks for your help. regards,

scp is the same as rcp, so

	man rcp

BUGS
     ...

     Is confused by any output generated by commands in a .login, .profile, or
     .cshrc file on the remote host.

It is not exactly true, but that is the issue.