Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



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

Posts: 34
Name: Jin
Location: Bangkok
Trades: 0
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!
 
 
Register now for full access!
Old 02-19-2008, 10:19 AM Re: SSH using Putty
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
use winscp. It uses the sftp protocol, upon ssh connections
http://winscp.net/eng/index.php
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 02-19-2008, 10:41 AM Re: SSH using Putty
Experienced Talker

Posts: 34
Name: Jin
Location: Bangkok
Trades: 0
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
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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
__________________
Only a biker knows why a dog sticks his head out the window.

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

Posts: 34
Name: Jin
Location: Bangkok
Trades: 0
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
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 02-21-2008, 03:33 AM Re: SSH using Putty
Experienced Talker

Posts: 34
Name: Jin
Location: Bangkok
Trades: 0
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
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to SSH using Putty
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.33739 seconds with 12 queries