Hi Dennis,
For instance I execute this command from my iSeries - I want to get lines about this in Syslog or in another log file:
ssh -f -l razloe 1.1.1.229 df -k
razloe@xxxxxxxxx's password: Permission denied, please try again.
razloe@xxxxxxxxx's password: Permission denied, please try again.
razloe@xxxxxxxxx's password: Permission denied (publickey,gssapi-with-mic,password
The ideal thing is to get message in format of SSHD log:
sshd[209292]: Failed password for razloe from 1.1.1.229 port 44858 ssh2
Also if the command is successful, I expect to get a line in syslog.Perhaps like this:
sshd[209466]: Accepted publickey for raloe from 1.1.1.229 port 49627 ssh2
Regards,
Zvi
--- On Sun, 8/29/10, Dennis Lovelady <iseries@xxxxxxxxxxxx> wrote:
From: Dennis Lovelady <iseries@xxxxxxxxxxxx>
Subject: RE: SSH Client to syslog: How to send
To: "'Midrange Systems Technical Discussion'" <midrange-l@xxxxxxxxxxxx>
Date: Sunday, August 29, 2010, 8:21 AM
What are you trying to log? Can you give a simple example or a little more
explanation of what you're trying to achieve?
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"Politics is not a bad profession. If you succeed there are many rewards, if
you disgrace yourself you can always write a book."
-- Ronald Reagan
Zvi Kave wrote:
I am trying to send SSH client messages to syslog.
SSHD (the server) sends the messages without any porblem.
But the SSH client does not send such a message.
I use the standard iSeries SSH installation on V5R3.
However, in the ssh_config file, there is a LogLevel parameter.
Someone has an idea ?
As an Amazon Associate we earn from qualifying purchases.