The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH prompts password for non identical users vjkatsun UNIX for Advanced & Expert Users 5 06-02-2008 02:18 AM
Shell Program that prompts for user Id mmg2711 UNIX for Dummies Questions & Answers 1 10-24-2007 08:15 AM
working in different prompts gopsman Shell Programming and Scripting 3 08-30-2007 07:12 AM
scripting password prompts hcclnoodles Shell Programming and Scripting 3 03-21-2005 04:25 PM
rsh help with remote prompts ianf Shell Programming and Scripting 4 09-02-2002 11:55 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-05-2006
balag balag is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 2
Question password prompts

I would like to log all the commands that are entered on an ssh client. I can do this successfully, however, I dont want to log user logins and passwords. Is there any way to identify passwords and avoid them? For example, I can look for a string 'password:' and ignore everything until a nl/cr. Is there any other way to identify the password prompt reliably so that I can ignore them?

TIA
Bala
  #2 (permalink)  
Old 01-05-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Quote:
I would like to log all the commands that are entered on an ssh client. I can do this successfully, however, I dont want to log user logins and passwords.
How are you doing this now? Using the script command will cause a log of everything to be saved (commands and their output) to a file but it doesn't show passwords when prompted since echo is turned off by the password utility.
  #3 (permalink)  
Old 01-05-2006
balag balag is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 2
We are logging the interaction between the user and the system using the ssh clients interface. The commands are captured before they are sent to the server. The server must know when to prompt for a password. Given this, are there special characteristics for the password prompt when it is issued by the server or is it completely a function of the client?

balag
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0