LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   scp error message (https://www.linuxquestions.org/questions/linux-newbie-8/scp-error-message-349476/)

basher400 08-03-2005 03:10 AM

scp error message
 
Hi

I can't seem to find out what is wrong here and I've checked google for this error message and a few forums and found nothing. :(

this is the command:
Code:

scp *.html baris:/web/www36/docs/bango/
(baris is the name of the host I want to copy *.html files to)

this is the error message:
Code:

ssh2: FATAL: ssh_client_key_check: no user directory.
scp: warning: child process (/usr/local/bin/ssh2) exited with code 255.

what say you? why am i getting it? i'm totaly lost with this, this is the first time I try to use scp

thanks

Linux~Powered 08-03-2005 05:36 AM

You need a user on baris to send the file to. You have at least one, root. If you don't have another one other than root, I suggest creating one. When you do, the new syntax will be...

Code:

scp *.html user@baris:/web/www36/docs/bango/

basher400 08-03-2005 05:58 AM

Quote:

Originally posted by Linux~Powered
You need a user on baris to send the file to. You have at least one, root. If you don't have another one other than root, I suggest creating one. When you do, the new syntax will be...

Code:

scp *.html user@baris:/web/www36/docs/bango/

I tried that and got the same result:
Code:

scp *.html dand@baris:/web/www36/docs/bango/
"dand" in my username on baris. (I don't have root access on baris by the way)

Linux~Powered 08-03-2005 10:56 AM

Does dand have the permission to write to that directory? If not, move it to dand's home directory. Then use root to move it, if you have to.

Code:

scp *.html dand@baris:/home/dand
Then log in as root and move it if you have to after it's there.

Also, are you sure it's not /home/web/www36/docs/bango/ If it's in the root directory, then root's going to have to be the one to move it, if you're useing the default permissions.

wsanders 08-15-2005 01:11 PM

This is an ssh CLIENT error
 
ssh: FATAL: ssh_client_key_check: no user directory.


I encountered this error when the user home directory on the ssh CLIENT (machine ssh-ing from) had the wrong permissions and was not writable. The ssh commands needs to be able to create a directory called .ssh2 in teh home directory of the user who runs the command.

musclehead 07-25-2007 02:21 PM

SCP via PHP
 
I'm getting the same error message when trying to execute SCP via PHP using backticks. The exact same SCP command executes perfectly from the command line, but fails in a PHP file.

Command: /usr/local/bin/scp -Q user@server:/dir/file.txt /dir/file.txt

PHP: `/usr/local/bin/scp -Q user@server:/dir/file.txt /dir/file.txt`;

The Command executes perfectly...but the PHP bails every time. Anyone have any advice?

colucix 07-26-2007 03:48 AM

I would try the -v option to scp. Normally it gives a very verbose output, useful to follow the talk between the two machines and eventually discover errors
Code:

scp -v *.html baris:/web/www36/docs/bango/


All times are GMT -5. The time now is 01:22 AM.