LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2005, 03:10 AM   #1
basher400
Member
 
Registered: Mar 2005
Posts: 54

Rep: Reputation: 15
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
 
Old 08-03-2005, 05:36 AM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
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/
 
Old 08-03-2005, 05:58 AM   #3
basher400
Member
 
Registered: Mar 2005
Posts: 54

Original Poster
Rep: Reputation: 15
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)
 
Old 08-03-2005, 10:56 AM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
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.
 
Old 08-15-2005, 01:11 PM   #5
wsanders
Member
 
Registered: Jul 2003
Posts: 31

Rep: Reputation: 15
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.
 
Old 07-25-2007, 02:21 PM   #6
musclehead
LQ Newbie
 
Registered: Jul 2007
Posts: 11

Rep: Reputation: 0
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?
 
Old 07-26-2007, 03:48 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
scp error. bruse Linux - Newbie 9 09-02-2005 03:44 PM
scp large files error sburns76247 Linux - Security 1 03-22-2005 05:23 PM
Scp Error chaitu_iiit Linux - Software 1 12-08-2004 09:08 AM
error with scp command eduac Linux - Security 2 08-07-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration