LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   error while using scp (https://www.linuxquestions.org/questions/aix-43/error-while-using-scp-4175415049/)

Ajit Gunge 07-05-2012 07:57 AM

error while using scp
 
I want to use scp on an AIX machine but I am getting folling error when I run the command.

ssh:connect to host x.x.x.x port 22: Connection refused
lost connection

I can see that my sshd is running on the host.

When I try to run the command startsrc -s sshd on the serve where I want to transfer the file I get the following error
0513-085 The sshd Subsystem is not on file.

Can someone tell me what I am missing here.

Thanks

ShadowCat8 07-05-2012 06:56 PM

Greetings,

Okay, let's break this down a bit for clarification:
  1. The sshd service is running on another host that has the file you want.
  2. You are running the command of scp on the AIX machine.
  3. You are trying to copy the file from that one host to another and not to the AIX machine you are on.
  4. You get the above error when you issue the scp command from the AIX machine.

Are these all correct? If so, my thought would be that there is no ssh server installed on the destination host. The quick solution would be to log onto the destination host directly and scp from the source host directly to the destination host (provided that the ssh and/or scp utilities have been installed.)

If the above list is *not* correct, let us know what is incorrect.

HTH. Let us know.


All times are GMT -5. The time now is 08:56 AM.