Reply
SSH using Putty
Old 02-19-2008, 09:03 AM SSH using Putty
Experienced Talker

Posts: 34
Name: Jin
Location: Bangkok
I have just started using Putty to access my server and I have read many different websites but none of them tell you how to move a file from my desktop to my server and the other way around.

Can someone explain how I can do this? If anyone feels like taking the time to do this please remember I am just learning this so you will be speaking to a noob.
Thai Freelance is offline
Reply With Quote
View Public Profile Visit Thai Freelance's homepage!
 
When You Register, These Ads Go Away!
Old 02-19-2008, 10:19 AM Re: SSH using Putty
tripy's Avatar
Fetchez la vache!

Posts: 2,251
Name: Thierry
Location: In the void
use winscp. It uses the sftp protocol, upon ssh connections
http://winscp.net/eng/index.php
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 02-19-2008, 10:41 AM Re: SSH using Putty
Experienced Talker

Posts: 34
Name: Jin
Location: Bangkok
Thanks for the link I will check it out.

Can this program be used in the root? Meaning say I want to get into the logs say something like this /var/log/httpd/logs/ (Not sure if I showed the right path it is only an example) can this program do that or is it only like an FTP program?
Thai Freelance is offline
Reply With Quote
View Public Profile Visit Thai Freelance's homepage!
 
Old 02-19-2008, 11:16 AM Re: SSH using Putty
tripy's Avatar
Fetchez la vache!

Posts: 2,251
Name: Thierry
Location: In the void
You are limited by the users permissions you log with.
If you log with root, then you'll have access to anything.

But I'd discourage it.
The best way would be to create a "log" group
Code:
addgroup log
Then add your user and httpd to that group (but check first the group and username of the file owner, the username/group apache runs under can vary from a linux distribution to another. On my server, it's apache:apache, but I know that on fedora, it's nobody:nobody)
Code:
usermod -a -G log your_username
usermod -a -G log apache_username
and change the log file ownership and permissions to be read/write by the group "log" the group
Code:
chown -R apache_username:log /var/log/httpd/logs/
chmod -R u+rw,g+rw,o+r /var/log/httpd/logs/
http://www.research.att.com/~gsf/man/man1/chown.html
http://www.research.att.com/~gsf/man/man1/chmod.html
__________________
Listen to the ducky: "This is awesome!!!"


Last edited by tripy : 02-19-2008 at 11:18 AM.
tripy is offline
Reply With Quote
View Public Profile
 
Old 02-20-2008, 03:27 PM Re: SSH using Putty
Experienced Talker

Posts: 34
Name: Jin
Location: Bangkok
Aside from changing to useing another product does anyone know how I would move the files using Putty?

I have bin/bash access and then I can use SU to get into root but once I am there if I go to the back ups or the logs how can I place those files on my desk top or move the files from my desk top to the server using Putty?

I am going to try what tripy has suggested but I would also like to know for Putty.
Thai Freelance is offline
Reply With Quote
View Public Profile Visit Thai Freelance's homepage!
 
Old 02-20-2008, 04:33 PM Re: SSH using Putty
tripy's Avatar
Fetchez la vache!

Posts: 2,251
Name: Thierry
Location: In the void
You cannot do that with putty. Putty implement a shell session.
You need either pftp (which comes with putty) or winscp (as I stated before) as clients to copy files over the ssh protocol using it's sftp extension.
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 02-21-2008, 03:33 AM Re: SSH using Putty
Experienced Talker

Posts: 34
Name: Jin
Location: Bangkok
Hello tripy,

To create the group "log" and give it permission will I have to give it permission for each area I want that group to access?

Where should I run those commands? Logged in as the admin while in the / directory?

Sorry but I am a total noob and trying to learn.
Thai Freelance is offline
Reply With Quote
View Public Profile Visit Thai Freelance's homepage!
 
Old 02-21-2008, 05:06 AM Re: SSH using Putty
tripy's Avatar
Fetchez la vache!

Posts: 2,251
Name: Thierry
Location: In the void
You can run these commands from anywhere.
All you need is to reference the files/directories. When it's done, you don't have to worry about where you do this from.
Code:
//check if a file or diretory exits
ls /var/log/messages  //Check if the file "messages" in the directory "/var/log" exists

cd /var/log  //go into the directoy /var/log
ls messages //Check if the file "messages" is present in the current directory
cd ..  //go up one directory
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to SSH using Putty
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13959 seconds with 12 queries