LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-25-2007, 07:27 AM   #1
sriramsreedhars
LQ Newbie
 
Registered: Mar 2007
Posts: 11

Rep: Reputation: 0
ssh login script


I need a bash script with follwing output

ssh -l user 127.0.0.1

if got access

"you have access"

else

"you dont have access"
 
Old 03-26-2007, 07:36 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
By default ssh login attempts that fail will return saying they failed. What are you trying to accomplish with such script?
 
Old 03-27-2007, 03:43 AM   #3
sriramsreedhars
LQ Newbie
 
Registered: Mar 2007
Posts: 11

Original Poster
Rep: Reputation: 0
I am planning to add this script as a trigger for an application so that users can be authenticated by way of SSH, rather then manuallt adding users for the application.
 
Old 03-30-2007, 06:54 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
And how are you going to do the password part?
 
Old 03-30-2007, 09:51 AM   #5
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
Quote:
And how are you going to do the password part?
he'll have to use RSA/DSA keys for authentication w/o passwords.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check in a script whether the shell is login or non login? frankie_DJ Programming 7 10-21-2015 10:09 AM
auto-login script for connecting to remote m/n by using telnet/ftp/ssh Uday123 Programming 5 10-12-2011 11:31 AM
SSH login script codeb Linux - General 5 04-27-2006 10:11 AM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 12:42 AM
Script for SSH login CyberEE Linux - Networking 10 06-03-2002 08:59 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:42 PM.

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