scp I have success at last but!
Roger Oberholtzer
roger
Mon May 17 11:37:44 PDT 2004
On Mon, 16 Sep 2002 07:47:11 +1000
Keith Antoine <kantoine at bigpond.net.au> wrote:
> I have managed to get scp working at last, it was asking for a password
> after I had called scp and told it what file I wanted. Took weeks for me
> to find out that the password it wanted was my login password ion this
> machine. Never thought of that and no one mentioned it <grin>.
>
> But now:
> root at univac:/home/webroot/eastwind/docs# scp -r business
> kantoine at 203.45.xxx.xxx/website: cp: cannot create directory
> `kantoine at 203.45.xxx.xxx/website:': No such file or directory
I think you want this;
scp -r business kantoine at 203.45.xxx.xxx:website
The dest machine and dest directory are separated by a ':'. If there is no
initial '/' in the dest directory name, then it is considered to be in the
user's HOME.
It will expect to put it in /home/kantoine/website on machine 203.45.xxx.xxx
I usually include the -p option as well to make the perms on the remote
match what the source has.
--
+============================+===============================+
| Roger Oberholtzer | E-mail: roger at opq.se |
| OPQ Systems AB | WWW: http://www.opq.se/ |
| Erik Dahlbergsgatan 41-43 | Phone: Int + 46 8 314223 |
| 115 32 Stockholm | Mobile: Int + 46 733 621657 |
| Sweden | Fax: Int + 46 8 302602 |
+============================+===============================+
More information about the Linux-users
mailing list