This solved the same problem that I was having.  Thanks.

But, is there a global environment file that I could add the path to, so 
that every user on the system can scp to the machine?

Thanks again.

-Jay

At 10:51 AM 1/4/2001, David Knight French wrote:
>Sounds like scp on the remote machine is not in a directory in your 
>path.  Add
>an entry to ~/.ssh/environment, or ~/.ssh2/environment for PATH that includes
>the dir scp is in.  If environment exists, make sure PATH is in it and has 
>the
>proper dir.  Don't use export or anything else, just the VAR=VALUE, like:
>
>PATH=/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin:DIR/TO/SCP
>
>sshd will loads these values before starting a shell or executing any local
>commands.  This also works if the remote machine mis-defines location of 
>xauth
>for X11 forwarding.
>
>If you want to make sure the PATH is right just run:
>
>         localhost$ ssh remotehost env
>
>and look for the value of PATH.  You could even run 'which scp' to make 
>sure it
>is found...
>
>Hope this helps.
>
>         --Dave
>
>P.S.  If you have any per shell scripts run (ENV is set for KSH), make 
>sure it
>doesn't remove the scp program dir location.  FOr csh make sure .cshrc 
>doesn't
>remove it either.
>
>
> >From: "Silvia Nieto Santos" <[EMAIL PROTECTED]>
> >To: "Sami Lehtinen" <[EMAIL PROTECTED]>
> >Cc: <[EMAIL PROTECTED]>
> >Subject: RE: Problem with scp
> >Date: Thu, 4 Jan 2001 09:09:21 +0100
> >MIME-Version: 1.0
> >Content-Transfer-Encoding: 7bit
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
> >
> >  Hello:
> >
> >  Another error appears now, I have used other format to copy:
> >
> >   % scp path/file user@remote:remote_path/remote_file
> >
> > But when I execute it, this messages appears when I introduce the password:
> >
> >  ksh: scp:  not found
> >  lost connection
> >
> >   How can I resolve?
> >
> >   Thank you very much.
> >
> >
> >----- Original Message -----
> >From: Sami Lehtinen <[EMAIL PROTECTED]>
> >To: Silvia Nieto Santos <[EMAIL PROTECTED]>
> >Cc: <[EMAIL PROTECTED]>
> >Sent: Thursday, January 04, 2001 4:36 AM
> >Subject: Problem with scp
> >
> >
> >> Silvia Nieto Santos, on January 2. 2001, wrote:
> >>   : Hello:
> >>   :
> >>   : I have a problem with scp, when I execute:
> >>   :
> >>   :  scp user@host:path/file user@remote:path/file
> >>   :
> >>   : When I introduce the password this messages appears:
> >>   :
> >>   : You have no controlling tty.  Cannot read passphrase.
> >>   : lost connection
> >>   :
> >>   : How can I resolve?
> >>   :
> >>   : Thank you very much.
> >>
> >> Is either of "host" or "remote" your local account (the machine where
> >> you run scp)? This is probably also a bug in the tty handling code,
> >> but you could work around it by only connecting remotely to one
> >> machine (it is faster too, as the way you currently use it, scp will
> >> connect to both hosts with ssh2, and not use local file access at
> >> all).
> >>
> >> For example, lets suppose "host" is the local host. Then you could use
> >> scp as follows:
> >>
> >>   % scp path/file user@remote:remote_path/remote_file
> >>   (to copy a local file to the remote)
> >> or
> >>
> >>   % scp user@remote:remote_path/remote_file path/file
> >>   (vice versa)
> >>
> >> --
> >> [[EMAIL PROTECTED]          --  Sami J. Lehtinen  --           [EMAIL PROTECTED]]
> >> [work:+358 9 85657425][gsm:+358 50 5170 258][http://www.iki.fi/~sjl]
> >> [SSH Communications Security Corp               http://www.ssh.com/]
> >>
> >
>
>--
>David Knight French
>Black Mountain Computer Consulting
>Voice: (858)279-4862
>Email: [EMAIL PROTECTED]

_________________
Jay Mari
[EMAIL PROTECTED]
developer

Reply via email to