LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   ssh login script (https://www.linuxquestions.org/questions/linux-enterprise-47/ssh-login-script-540424/)

sriramsreedhars 03-25-2007 07:27 AM

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"

trickykid 03-26-2007 07:36 PM

By default ssh login attempts that fail will return saying they failed. What are you trying to accomplish with such script?

sriramsreedhars 03-27-2007 03:43 AM

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.

uselpa 03-30-2007 06:54 AM

And how are you going to do the password part?

baikonur 03-30-2007 09:51 AM

Quote:

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


All times are GMT -5. The time now is 06:15 AM.