Click to See Complete Forum and Search --> : scp: permission denied


J-Tek
04-09-2002, 03:53 PM
Hi,

im trying to migrate mail accounts from one server to the next using scp

I login to one machine via ssh

then try to copy a file/mailbox over to the other server

scp testfile.txt jughead@server.com:/mail

-after I enter the password I get "Permission Denied" anyone know why???
i have permissions to scp and ssh on local machine.

thanx

scanez
04-09-2002, 04:01 PM
Originally posted by J-Tek:
<STRONG>scp testfile.txt jughead@server.com:/mail
</STRONG>
With this line you are trying to copy testfile.txt into /mail, that is the directory mail in / (root directory) which you probably don't have permission to do. Probably what you were trying to do is copy the file the mail directory in your home directory, use

scp testfile.txt jughead@server.com:mail

The home directory for the user (in this case jughead) is where scp copies to.

J-Tek
04-09-2002, 04:22 PM
you're right.

duuuuuuuuuuuuuuuuuuuuuuuuuuuuuh

thanx