General discussion

Locked

Can't get system to "find" scp command

By jeff77 ·
Hello, I am trying to run scp (secure copy) command. I keep getting "ksh: scp: not found" error. I get this even when I run the command from the directory that scp (and ssh) are in. I also get it when my command includes the full path to the scp command. Any help would be greatly appreciated. Thanks, Jeff

Here is what I ran:

userID(server1: /fisc/gnu/bin): /fisc/gnu/bin/scp -p /home/userID/test.txt userID@server2:/home/userID/test.txt

And this is what was returned:

ksh: scp: not found
lost connection


Any help on why it is not found would be greatly appreciated. Thanks, Jeff

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Can't get system to "find" scp command

by ghislain.levesque In reply to Can't get system to "find ...

Have you try it from a bourne shell instead?

Collapse -

Can't get system to "find" scp command

by jeff77 In reply to Can't get system to "find ...

The question was auto-closed by TechRepublic

Collapse -

Can't get system to "find" scp command

by Gary_W In reply to Can't get system to "find ...

Make sure the directory scp is in is in your PATH environment variable.

echo $PATH

add a "./" in front of the command to force the shell to look in the current directory.

Gary

Collapse -

Can't get system to "find" scp command

by jeff77 In reply to Can't get system to "find ...

The question was auto-closed by TechRepublic

Collapse -

Can't get system to "find" scp command

by hson In reply to Can't get system to "find ...

I would say that the problem you are having is due to the fact that when your scp connect to the remote machine it cant find the scp binary (on the remote machine). Have you checked your path ($PATH) on the remote machine? Just log on to the machineand check if you can find scp in any of the directories in your path, if not, find out where scp is and add it to your path. Don't forget to add it to your startup files (.cshrc for csh/tcsh .profile for sh/ksh)

Collapse -

Can't get system to "find" scp command

by jeff77 In reply to Can't get system to "find ...

The question was auto-closed by TechRepublic

Collapse -

Can't get system to "find" scp command

by jeff77 In reply to Can't get system to "find ...

This question was auto closed due to inactivity

Back to Linux Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums