Chanpa
March 26th, 2012, 11:15 PM
(I realise it's not ubuntu but the solution might work on both)
Hi,
I've done a website for a small company and I got access to their server to upload it. It's running:
cat /etc/issue
CentOS Linux release 6.0 (Final)
uname -a
Linux fsyd-linux01.fsyd.local 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
What I want to do is to copy my folders with the site to their server on /var/www/html/finnskatten.
I'm using Windows 7 Ultimate x64.
I'm using putty / pscp.
I tried this with pscp:
C:\Users\Johan>pscp -r c:\mowes_portable\www\ ****@**.***.**.***:/var/www/html/finnskatten
With that I get permission denied on all files/folders it tried to create.
So I tried connecting in putty and still got permission denied when I tried to create files/folders so I figured I needed to run sudo before the command and it worked.
However I don't know how to copy a folder on my computer to the target server in putty.
I tried using scp in putty like this:
scp -r C:\mowes_portable\www\ ****@**.***.**.***:/var/www/html/finnskatten
But it didn't work, it just replied: Usage: scp [[options etc]].
TL;DR:
I either have to know how to grant pscp permission when it from my computer or how to copy files from my computer to their server using putty(with scp for example)
Regards,
Chanpa
Hi,
I've done a website for a small company and I got access to their server to upload it. It's running:
cat /etc/issue
CentOS Linux release 6.0 (Final)
uname -a
Linux fsyd-linux01.fsyd.local 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
What I want to do is to copy my folders with the site to their server on /var/www/html/finnskatten.
I'm using Windows 7 Ultimate x64.
I'm using putty / pscp.
I tried this with pscp:
C:\Users\Johan>pscp -r c:\mowes_portable\www\ ****@**.***.**.***:/var/www/html/finnskatten
With that I get permission denied on all files/folders it tried to create.
So I tried connecting in putty and still got permission denied when I tried to create files/folders so I figured I needed to run sudo before the command and it worked.
However I don't know how to copy a folder on my computer to the target server in putty.
I tried using scp in putty like this:
scp -r C:\mowes_portable\www\ ****@**.***.**.***:/var/www/html/finnskatten
But it didn't work, it just replied: Usage: scp [[options etc]].
TL;DR:
I either have to know how to grant pscp permission when it from my computer or how to copy files from my computer to their server using putty(with scp for example)
Regards,
Chanpa