LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-01-2007, 10:20 PM   #1
linux_research
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
log of scp command


I have a Server run CentOS, I need monitor all file copy to this server from another server with scp command, in /var/log don't have scp log, do you known about this, please help me. Thanks.
 
Old 10-01-2007, 11:25 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Does scp command have the option of logging its activities? Like a configuration file?

If not, why not just direct the output to a file. I don't know the exact syntax of this scp command, but if you did something like:

scp -v [options] [/source] [/destination] >> var/log/scp.log

would this accomplish what you want?
I imply that the -v is for a verbose output, and the bold stuff is to direct output to a log file.
 
Old 10-02-2007, 01:20 AM   #3
linux_research
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
oh no, I can't use: scp -v [options] [/source] [/destination] >> var/log/scp.log, because I need monitor server, I want know anybody user scp command copy file to my server.
 
Old 10-02-2007, 02:44 AM   #4
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 32
Quote:
Originally Posted by linux_research View Post
I have a Server run CentOS, I need monitor all file copy to this server from another server with scp command, in /var/log don't have scp log, do you known about this, please help me. Thanks.
http://sftplogging.sourceforge.net/ - hope this helps. i tried it on one of my centos servers and its working fine.
 
Old 10-02-2007, 03:01 AM   #5
linux_research
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
maybe sftplogging write sftp session log, don't have scp log, my servers not open sftp, only open ssh to tranfer file. I want control all file copy to this server with scp command. So, I need have log of scp command, (~_*), Please help me, thanks.
 
Old 10-02-2007, 03:03 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe "Scponly" with logging on (level 2)?
 
Old 02-17-2011, 08:29 PM   #7
frinsz
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 1
you may check the logs in /var/log/secure, ssh and scp action should be recorded there.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp command zchoyt Linux - General 10 04-02-2014 07:47 AM
scp: command not found - (Not Installed ???) stuartornum Linux - Software 8 04-01-2014 09:01 AM
scp command problem srnerkar1 Linux - Networking 7 11-16-2005 08:06 AM
command of scp Paxmaster Linux - General 4 01-06-2005 12:59 PM
error with scp command eduac Linux - Security 2 08-07-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration