Problem transfering files using SCP to /var/www/html
Hey guys, I have set up my linux box as a web server. I'm trying to add content to /var/www/html through scp from a windows client. The problem is that when I start the http service, the default apache page shows instead of my html content. I think this have to do with the file permissions but I dont know how to change them on the client side. Any possible help is much apreciated.
|
The only way I am familiar with transferring/connecting from a MS Windows box to a ssh server is through PuTTY and associated programs. Is that what you are using? The most straight forward approach, at least until you figure out what is going on, would be to actually log onto your webseverver via ssh. The Linux scp program will preserve permissions and time stamps with the -p option, but I don't know how that would work coming from a MS environment. I don't have a MS machine running right now to see what is available through PuTTY.
|
Thanks for your reply Blackhole54. After playing with it I finally got it resolved, it was a permision issue. I chmod to 744 and it works. Prior to this I'd just cp from my home directory to /var/www/html and that would take care of the apropriate permisions, but this time around I was having trouble doing this through scp(I'm new to ssh). Again many thanks
|
All times are GMT -5. The time now is 02:11 PM. |