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/ this is the error message: Code:
ssh2: FATAL: ssh_client_key_check: no user directory. thanks |
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/ |
Quote:
Code:
scp *.html dand@baris:/web/www36/docs/bango/ |
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 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. |
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. |
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? |
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. |