Re: ssh and how do you do things
On Thursday 07 February 2002 01:35 am, Federico Voges warbled: Keith, Short answer: man scp Read that as I said but you need to be psychic to understand what its saying as with most man pages. Not-so-short answer: You don't need to ssh first. File xfer (remote to local) scp user@host:/path/source_file /local/path/[new_filename] Can you use a 'directory name' for remote and use -r ? File xfer (localto remote) scp /local/path/source_file user@host:/path/[new_filename] You can use the -r switch to do a recursive xfer. Thanks I'll try these out I you don't have your public key on the remote site, you'll be asked for the password. Yes my keys are on the remote site. -- Keith Antoine aka 'skippy' 18 Arkana St, The Gap, Queensland 4061 Australia PH:61733002161 Retired Geriatric, Sometime Electronics Engineer, Knowall, Brain in storage ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: ssh and how do you do things
On Thu, 7 Feb 2002 21:28:59 -0500, Keith Antoine wrote: File xfer (remote to local) scp user@host:/path/source_file /local/path/[new_filename] Can you use a 'directory name' for remote and use -r ? I've had some difficulty with that since 3.02p1 came out. Anyone found a fix for this? stayler ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: ssh and how do you do things
On Thursday 07 February 2002 02:22 pm, Federico Voges warbled: Can you use a 'directory name' for remote and use -r ? Yes, you can. IIRC, if you include the last / (eg: /home/fvoges/docs/) it will create the directory: scp -r user@host:~/docs . will copy everything in the docs dir (recursively) to the current dir. scp -r user@host:~/docs/ . will create a new docs directory in the current (local) dir. The, it will copy everything in the docs dir (recursively) to it. You'll have to try... I tried and thats why I asked. The syntax is 'all' and that is not explained in easy two syllable words, suitable for an old fellas brain. Unfortunately most developers and howto writers have a set of assumptions, that something is known and plain to see. -- Keith Antoine aka 'skippy' 18 Arkana St, The Gap, Queensland 4061 Australia PH:61733002161 Retired Geriatric, Sometime Electronics Engineer, Knowall, Brain in storage ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: ssh and how do you do things
On Thursday 07 February 2002 02:22 pm, Federico Voges warbled: Read that as I said but you need to be psychic to understand what its saying as with most man pages. Not-so-short answer: You don't need to ssh first. File xfer (remote to local) scp user@host:/path/source_file /local/path/[new_filename] Can you use a 'directory name' for remote and use -r ? Yes, you can. IIRC, if you include the last / (eg: /home/fvoges/docs/) it will create the directory: scp -r user@host:~/docs . will copy everything in the docs dir (recursively) to the current dir. scp -r user@host:~/docs/ . will create a new docs directory in the current (local) dir. The, it will copy everything in the docs dir (recursively) to it. Ok thanks for the help, but the help means absolutely nothing to me. So I have a remote site www.eastwind.com.au wherein lies a dir called 'photos' I want to rewrite the site and put up about 650 photos; I only have ssh access. I ssh in and then cd to /home/webroot/eastwind/docs; at this point i can call scp, but from that point I have had no success. What do I use in the user@host: position my login on the remote machine and my hostname here or what ? Sorry I have no idea what user@host: stands for. Everytime I enter anything all I get is: kantoine@univac:/home/webroot/eastwind/docs$ scp -r kantoine@CPE-203-45-140-190:/photos/ usage: scp [-pqrvC46] [-S ssh] [-P port] [-c cipher] [-i identity] f1 f2; or: scp [options] f1 ... fn directory Until recently I have always used ftp to get to the site so ssh is a closed book and there are NO examples out there to explain what to do. Howto and man are useless. Lastly I am a h/w man not a software guy. -- Keith Antoine aka 'skippy' 18 Arkana St, The Gap, Queensland 4061 Australia PH:61733002161 Retired Geriatric, Sometime Electronics Engineer, Knowall, Brain in storage ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: ssh and how do you do things
--- Keith Antoine [EMAIL PROTECTED] wrote: On Thursday 07 February 2002 02:22 pm, Federico Voges warbled: Read that as I said but you need to be psychic to understand what its saying as with most man pages. Not-so-short answer: You don't need to ssh first. File xfer (remote to local) scp user@host:/path/source_file /local/path/[new_filename] Can you use a 'directory name' for remote and use -r ? Yes, you can. IIRC, if you include the last / (eg: /home/fvoges/docs/) it will create the directory: scp -r user@host:~/docs . will copy everything in the docs dir (recursively) to the current dir. scp -r user@host:~/docs/ . will create a new docs directory in the current (local) dir. The, it will copy everything in the docs dir (recursively) to it. Ok thanks for the help, but the help means absolutely nothing to me. So I have a remote site www.eastwind.com.au wherein lies a dir called 'photos' I want to rewrite the site and put up about 650 photos; I only have ssh access. I ssh in and then cd to /home/webroot/eastwind/docs; at this point i can call scp, but from that point I have had no success. What do I use in the user@host: position my login on the remote machine and my hostname here or what ? Sorry I have no idea what user@host: stands for. It stands for the remote box's domain name. If you're looking to xfer files from your box to the server, then user@host is the remote server, where user is your username on that server. = Lonni J. Friedman [EMAIL PROTECTED] Linux Step-by-step help: http://netllama.ipfox.com . __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: ssh and how do you do things
Keith Antoine wrote: snip I ssh in and then cd to /home/webroot/eastwind/docs; at this point i can call scp, but from that point I have had no success. What do I use in the user@host: position my login on the remote machine and my hostname here or what ? Sorry I have no idea what user@host: stands for. Everytime I enter anything all I get is: kantoine@univac:/home/webroot/eastwind/docs$ scp -r kantoine@CPE-203-45-140-190:/photos/ usage: scp [-pqrvC46] [-S ssh] [-P port] [-c cipher] [-i identity] f1 f2; or: scp [options] f1 ... fn directory Until recently I have always used ftp to get to the site so ssh is a closed book and there are NO examples out there to explain what to do. Howto and man are useless. Lastly I am a h/w man not a software guy. -- Keith Antoine aka 'skippy' 18 Arkana St, The Gap, Queensland 4061 Australia PH:61733002161 Retired Geriatric, Sometime Electronics Engineer, Knowall, Brain in storage ___ Maybe an easier method for you (you be the judge) is to (on your local machine) do it like this: 1. cd to the directory of the files you want to transfer e.g. cd /home/kantoine/pics 2. scp yourfilenamehere xxx.xxx.xxx.xxx:/home/webroot/eastwind/docs (substitute the real file name for yourfilenamehere and the server's ip address for the xxx's. You should get a login prompt to enter your username password, then you'll see the transfer progress. 3. Remember that you invoke scp from the machine you want to transfer FROM not the machine you're transferring TO. HTH, -- Andrew Mathews 7:45pm up 17 days, 10:22, 7 users, load average: 1.12, 1.08, 1.04 Oh Dad! We're ALL Devo! ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: ssh and how do you do things
--- Andrew Mathews [EMAIL PROTECTED] wrote: 3. Remember that you invoke scp from the machine you want to transfer FROM not the machine you're transferring TO. This is not true. You can do it either way, although to reduce the amount of confusion for Keith, its prolly best to follow that suggestion. = Lonni J. Friedman [EMAIL PROTECTED] Linux Step-by-step help: http://netllama.ipfox.com . __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: ssh and how do you do things
On Thursday 07 February 2002 08:54 pm, Net Llama warbled: It stands for the remote box's domain name. If you're looking to xfer files from your box to the server, then user@host is the remote server, where user is your username on that server. Arrgggh!! There I was trying my host name been 5 hrs trying to d/l files. So I guess that the command string I use then is: scp -r [EMAIL PROTECTED] ~/photos/ This I guess will download the whole of the photos dir to my machine and if I just use scp [EMAIL PROTECTED] ~/index.htm/ that will download just that file ?? -- Keith Antoine aka 'skippy' 18 Arkana St, The Gap, Queensland 4061 Australia PH:61733002161 Retired Geriatric, Sometime Electronics Engineer, Knowall, Brain in storage ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: ssh and how do you do things
On Thursday 07 February 2002 10:01 pm, Andrew Mathews warbled: Maybe an easier method for you (you be the judge) is to (on your local machine) do it like this: 1. cd to the directory of the files you want to transfer e.g. cd /home/kantoine/pics 2. scp yourfilenamehere xxx.xxx.xxx.xxx:/home/webroot/eastwind/docs (substitute the real file name for yourfilenamehere and the server's ip address for the xxx's. You should get a login prompt to enter your username password, then you'll see the transfer progress. 3. Remember that you invoke scp from the machine you want to transfer FROM not the machine you're transferring TO. HTH, Thanks mate, just what I need 'in plain english'. I have been trying for days now to upload or download files all to no avail. In the end I also deleted, by mistake, my .ssh file, took me a while to realise what I had done. I was also trying the sft command but that was saying permission denied (publickey), unsure what this meant, but is it saying that the public key on the remote and mine do not match ? Funny because I can login with ssh if that is so. -- Keith Antoine aka 'skippy' 18 Arkana St, The Gap, Queensland 4061 Australia PH:61733002161 Retired Geriatric, Sometime Electronics Engineer, Knowall, Brain in storage ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
ssh and how do you do things
I have ssh access on a remote site and can login as I sent my public key. Waht I do not know is what do I then do as far as commands are concerned to either upload or download files. I believe I use a command called SCP but there has to be switches I do not know about, as it in itself does not work. BTW way Do I in point of fact login with ssh first and then call scp (something) or what do I do ? I hav elooked for something online that tells me faq's and so called manulas but no luck. -- Keith Antoine aka 'skippy' 18 Arkana St, The Gap, Queensland 4061 Australia PH:61733002161 Retired Geriatric, Sometime Electronics Engineer, Knowall, Brain in storage ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.
Re: ssh and how do you do things
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith, Short answer: man scp Not-so-short answer: You don't need to ssh first. File xfer (remote to local) scp user@host:/path/source_file /local/path/[new_filename] File xfer (localto remote) scp /local/path/source_file user@host:/path/[new_filename] You can use the -r switch to do a recursive xfer. I you don't have your public key on the remote site, you'll be asked for the password. On Thu, 7 Feb 2002 16:07:03 -0500, Keith Antoine wrote: I have ssh access on a remote site and can login as I sent my public key. Waht I do not know is what do I then do as far as commands are concerned to either upload or download files. I believe I use a command called SCP but there has to be switches I do not know about, as it in itself does not work. BTW way Do I in point of fact login with ssh first and then call scp (something) or what do I do ? I hav elooked for something online that tells me faq's and so called manulas but no luck. -- Keith Antoine aka 'skippy' 18 Arkana St, The Gap, Queensland 4061 Australia PH:61733002161 Retired Geriatric, Sometime Electronics Engineer, Knowall, Brain in storage ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL. Federico Voges Socio gerente Intrasoft Malabia 2137 14 A (1425) Buenos Aires Argentina Te/Fax: 54-11-4833-5182 e-mail: [EMAIL PROTECTED] Web: http://www.intrasoft.com.ar PGP Public Key Fingerprint: A536 4595 EB6F D197 FBC1 5C3A 145C 2516 -BEGIN PGP SIGNATURE- Version: PGPsdk version 1.7.1 (C) 1997-1999 Network Associates, Inc. and its affiliated companies. iQA/AwUBPGIgLBRcJRaVKt4XEQIV+gCg2zG5dqNSiQawB4lMZtz3pSz8Vi0Ani1Z j41Pnao75pnStM43WzL2Lg/a =0fv/ -END PGP SIGNATURE- ___ Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.