scp -f / interactive ?

Richard E. Silverman res at shore.net
Mon Dec 25 02:22:53 EST 2000


On Sun, 24 Dec 2000, Philipp Buehler wrote:

> debug: Sending command: scp -v -f file.txt
> debug: Entering interactive session.
> Sending file modes: C0644 3093316 file.txt
> 
> Since it 'interactives' the remote user needs a shell. 

This message is misleading.  What it really means is that the client is
starting an SSH "exec" channel to run a remote program; it will always
print that.

> Any workaround?

No, because sshd uses the remote user's shell to run any program it needs
to start, via "$SHELL -c <program>".

> But more interesting is that scp -f call. Didnt found it in the
> manpage? Is this related to the background-mechanism like
> ssh -f ?

No.  -f and -t are undocumented switches which tell the remote scp to send
or prepare to receive a file or files from the local scp.

-- 
  Richard Silverman
  slade at shore.net






More information about the openssh-unix-dev mailing list