Web Hosting Talk







View Full Version : How do I upload a file via SSH?


nogi
02-21-2003, 10:57 AM
I need to upload a modified cpanel skin to a server but don't know what command to use. Can anybody tell me how a file is uploaded from my local computer to the remote server, and what command should be used to unpack it at the server? I'm still new to SSH so I hope that someone will bear over with my ignorance and lend me a helping hand.

Thanks
John

sitekeeper
02-21-2003, 11:10 AM
You can use the FTP 'put' command;

do a search on google for more information;

http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=FTP+commands

http://www.userlocal.com/helpbasic.php

nogi
02-21-2003, 11:31 AM
Thanks for the links. I tried to log in as root but it will not accept the root password. This is the passwor I use to log in to WHM and via SSH. Do you know why this is happening with FTP?

John

Joana
02-21-2003, 12:04 PM
Probably your ROOT user is not allowed to login to SSH.. Create another user, give it SSH access then add that user to the wheel group.. Next, login as that user to SSH.. su root, then root password.

cubision
02-21-2003, 01:18 PM
If you want to transfer files securely, as you did ask to transfer fles via ssh and not ftp...

Use something called scp, a command would go as follows:

scp /local/path/to/file username@host.com:/remote/path/to/file

then enter your password when prompted to do so, and the transfer should go fine.

Come back if you have any more questions or problems.

Domenico
02-21-2003, 03:23 PM
Or just try rz -b for binary or rz -a for text files.
Offcourse your ssh client must support zmodem transfers...

mrl14
02-22-2003, 02:51 PM
Should regular user accounts that you make to host peoples web sites have Wheel access group?

Joana
02-22-2003, 03:02 PM
Originally posted by infinityws
Should regular user accounts that you make to host peoples web sites have Wheel access group?

BIG NO

mrl14
02-22-2003, 03:18 PM
Hmmm...Well I create an account inside WHM and it added that user to the WHEEL group.

Maybe because it wasn't assigned a package?

This count was for me, so i'm not worried, but i'm worried about other accounts. Does PHP Manager assign accounts to WHEEL?

nogi
02-22-2003, 08:18 PM
Thank you very much for all your input and help :)

John