Sponsored Content
Full Discussion: ssh login authenication
Top Forums Shell Programming and Scripting ssh login authenication Post 302279878 by nixnoob on Saturday 24th of January 2009 01:43:21 PM
Old 01-24-2009
Not sure what OS you're using but if you have a logcheck and a logcheck.ignore file you could set it up so that user logins with login id's and system ip/dns name gets logged and emailed as a system event log file using cron. That would give you multiple records in a single email ever hour.

I've seen hundreds of ssh entries in a day to my servers. We have server logs emailed every hour using cron, keeps the emails from piling up so bad.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can we ssh login with script?

Hi all, Normally, we give ip address to login with ssh like ssh 172.168.0.1 And we can give login name to ssh like ssh -l root 172.10.0.21 Then the shell asks the password, we enter the password and login to the system. While using the script file, we are not able to supply the password to... (5 Replies)
Discussion started by: pcsaji
5 Replies

2. UNIX for Dummies Questions & Answers

help with ssh login

hi, i have red hat RHEL-5 on my machine, i ma trying to ssh login on remote machine root@localhost~]# ssh ip_address(of remote machine) it works fine if i know the password, i use wireless network so the ip keeps on changing,so is there any way to access the machine with some unique name, which... (1 Reply)
Discussion started by: ankita tux
1 Replies

3. Red Hat

help with ssh login

hi, to ssh login i give the command.. root@localhost~] # ssh ip_add it allows me to login on a remote machine if i know the password, but i work on wireless network so the ip keeps on changing for the remote machine, how can i access that machine with some unique name , that does not changes.i... (3 Replies)
Discussion started by: ankita tux
3 Replies

4. Shell Programming and Scripting

ssh login help

I would like to login to host and once logged into host would like to run script. i.e "ssh hostname -l username /opt/share/scripts/vol" Can someone please have this run as script .. Many Thanks -sam (1 Reply)
Discussion started by: sam786
1 Replies

5. Ubuntu

Likewise AD Authenication with proxy

I am running Ubuntu 10.04 on my laptop and have successfully joined it to our domain for authentication. we use a proxy server for internet access that requires the AD user and password. Even though the computer is added and I am logged on as the AD user when accessing the internet via Firefox,... (3 Replies)
Discussion started by: Ikon
3 Replies

6. Shell Programming and Scripting

Help with ssh login and command

Hi I want to make a ssh login and excute a command in the same step. I am trying something like ssh -t -t -Y hostname 'sh myscript' However I recive connection to "host" closed and nothing has happend. I can succesfully log in to the host and then excute my script if I do it in... (2 Replies)
Discussion started by: Mtepe
2 Replies

7. HP-UX

telnet login successful ,but ssh can not login

why I can login by telnet using root account but when i use login by ssh using root account it is not successful ,is it different password i am sure ssh service is started (2 Replies)
Discussion started by: alert0919
2 Replies

8. Shell Programming and Scripting

ssh login

Hi, I am trying to login Server2 from server1 in a shell script and need to perfrom few commands, Below is the command i used to login to server2 from server1 ssh -l username server2 However everytime it executes it asking for password. How do write a script in such way it takes... (1 Reply)
Discussion started by: ch33ry
1 Replies

9. Shell Programming and Scripting

Getting ssh to try login only once

spawn ssh remotehost -l skysmart when the password is incorrect, this will attempt to log in 2 more times, before it exits. is there an option I can pass to ssh that'll make it try only once and will then abort immediately if the password is incorrect? something like: spawn ssh... (1 Reply)
Discussion started by: SkySmart
1 Replies

10. Red Hat

SSH login issue

Dear All , recently i have configured sftp for a user for which i have done chroot. but after this , sftp is working fine . but ssh is not working when we connect to the server. When we try to ssh <user>@<server ip> , the below is the error message that we get and not able to login. ... (2 Replies)
Discussion started by: jegaraman
2 Replies
epylog(8)							Applications/System							 epylog(8)

NAME
epylog - Syslog new log notifier and parser. SYNOPSIS
epylog [-c epylog.conf] [-d LOGLEVEL] [--last PERIOD] [--store-offsets] [--quiet] [--cron] DESCRIPTION
Epylog is a new log notifier and parser which runs periodically out of cron, looks at your logs, processes the entries in order to present them in a more comprehensive format, and then provides you with the output. It is written specifically with large network clusters in mind where a lot of machines (around 50 and upwards) log to the same loghost using syslog or syslog-ng. Alternatively, Epylog can be invoked from the command line and provide a log report based on a certain provided time period. In this case it relies on syslog timestamps to find the offsets, as opposed to the end-of-log offsets stored during the last run, though this behavior is not as reliable and is easily thwarted by skewed clocks. OPTIONS
-c config.file Provide an alternative config file to Epylog. By default, it will look in /etc/epylog/epylog.conf. -d LOGLEVEL Logging level. The default is 1. 0 will produce no output except for critical errors (useful for cron runs). 2 and above are debug- ging levels. 5 is the most verbose. --last PERIOD Will make a report on events that occurred in the last PERIOD. PERIOD can be either "hour", "day", "week", "month", or more granu- lar: "1h", "2h", "3d", "2w", etc. When --last is specified, epylog will ignore the saved offsets and locate the entries by time- stamps. CAUTION: this process is not to be trusted, since the timestamps are not checked for any validity when arriving to the loghost. One reporting machine with a skewed clock may confuse Epylog enough to miss a lot of valid entries. --store-offsets When specified, will store the offset of the last log entry processed in offsets.xml. During the cron runs epylog relies on the off- set information to find out what new entries to process. This is more trustworthy than relying on timestamps. The default behavior is not to store the offsets, as this allows to run epylog both from cron and manually without the two interfering with each-other. The location of offset.xml is specified in epylog.conf. See epylog.conf(5) for more details. --quiet In every way identical to -d 0. --cron This is essentially --quiet --store-offsets, plus a lockfile will be created and consulted, preventing more than one instance of epylog from running. You can still run epylog manually -- the lockfile is only checked when running in --cron mode. FEATURES
The core of epylog is written in python. It handles things like timestamp lookups, unwrapping of "last message repeated" lines, han- dling of rotated files, preparing and publishing the reports, etc. The modules are pluggable and can be either "internal", written in python, or external. External modules can be written in any lan- guage, but at a price of some convenience. For more info see epylog-modules(5). INITIAL RUN
Depending on the size of your logs, you might want to initialize your offsets before letting epylog run from cron. When the off- sets.xml file is missing, epylog will by default process the entire log, and depending on your configuration, that can be a lot of entries. A good way to init epylog is to run: epylog --last day --store-offsets FILES
/etc/epylog/epylog.conf /usr/sbin/epylog /etc/cron.daily/epylog.cron /etc/epylog/* /var/lib/epylog/* /usr/share/epylog/modules/* EXAMPLES
The useful way to run from a command line is with --last. E.g.: epylog --last day epylog --last 2w When running from cron, you want to store the offsets and not rely on timestamps. There is a mode that allows you to do this: epylog --cron AUTHORS
Konstantin Ryabitsev <icon@linux.duke.edu> SEE ALSO
epylog.conf(5) epylog-modules(5) Konstantin Ryabitsev 1.0 epylog(8)
All times are GMT -4. The time now is 07:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy