Sponsored Content
Top Forums UNIX for Advanced & Expert Users Automate with Putty-SSH for 2 users Post 302302451 by vibhor_agarwali on Tuesday 31st of March 2009 03:26:08 AM
Old 03-31-2009
Automate with Putty-SSH for 2 users

Hi,

I have automated logins to Unix boxes with Ssh - Putty combination.
Have created a Pub - Pvt key combination for the same.
Added the entry of username in "User name" box of Putty.

This works perfectly for the specified user.

I want this to happen now for another user as well, without changing the user name in above box everytime.
How can this be done?

Thanks
 

10 More Discussions You Might Find Interesting

1. Solaris

SSH with Putty

I've been trying to setup my SunBlade as an SSH server. I configured the sshd_config file, but I cannot get the keys to exchange properly. I generate a key pair in Putty on my laptop (the host, running Win2K), exported the Private key as OpenSSH and then copied the public key to the a file I... (3 Replies)
Discussion started by: AJA
3 Replies

2. Linux

Display to PC via ssh/putty (RHE 5)

Hi all, I just installed Red Hat Enterprise and I would like to have the KDE/GNOME windows display to my PC. When I am root (via ssh, putty) I type startx but it fails. I'm not sure what has to be configured! Any help would be greatly appreciated. Thanks! (1 Reply)
Discussion started by: kjbaumann
1 Replies

3. Red Hat

Free SSH Client other than PUTTY

Is there any Better FREE SSH client similar to Secure CRT ? We are working on cluster db servers. PROD/DEV/UAT/QA/TEST server hostnames are just one letter differences. it always confuse me to which one I am logging in. So I am looking for a free SSH client, for windows where I can store... (4 Replies)
Discussion started by: johnveslin
4 Replies

4. Shell Programming and Scripting

Expect Script to Automate SSH

How would I write an expect script to automate ssh and what file extention do expect files use? (11 Replies)
Discussion started by: Prodiga1
11 Replies

5. AIX

Automate ssh between different flavours of ssh

Hiya, I want to automate ssh between two servers (Server A and Server B) and currently facing two problems. I am able to automate ssh between same SSH versions but unable to do so for following conditions. 1. SSH versions are different on Server A and Server B. 2. Username is different on... (1 Reply)
Discussion started by: kamitsin
1 Replies

6. Solaris

how to get to openboot through ssh putty?

hi, iīm trying to get openboot through ssh putty, could you tell me the way because i donīt have a sun keyboard.. thanks... (3 Replies)
Discussion started by: pabloli150
3 Replies

7. Solaris

Putty SSH connection not working

I am trying to connect to a solaris server using putty from a indows client. SSH connection is not working. The terminal indow just gives an error message "Network error:Connection refused". I verified SSHD and its running correctly! #svcs -p ssh STATE STIME FMRI online 17:54:44... (3 Replies)
Discussion started by: herbich1985
3 Replies

8. Shell Programming and Scripting

Unable to automate SSH in Script

Hi I have a script at Server B. I want to run it from server A via another script. I tried the following command. ssh mss@247.123.456.123 "sh pm10.sh" It's getting login automatically, but while running the script through error like "reppar: command not found" where reppar is an application... (4 Replies)
Discussion started by: rajeshmepco
4 Replies

9. UNIX for Advanced & Expert Users

Making SSH coonection through putty

Hi Folks , I am using putty to connect to a unix box machine the issue is that every time i need to enter the credentials of the servers (unix box) , please advise is there any way i can configure putty so that only i need to eneter the user id of the server and password is automatically pass... (1 Reply)
Discussion started by: n4noida
1 Replies

10. Shell Programming and Scripting

Query regarding PuTTY SSH Tunneling

I have a process running on my local server. http://dev.techx.com:6060/proct I wish to block port 6060 and expose port 7777 to the outside world. I block port 6060 and open port 7777 on the firewall. What should be the PuTTY Settings -> Connection -> SSH -> Tunnels 1. Destination ... (3 Replies)
Discussion started by: mohtashims
3 Replies
auth_for_terminal_es(3) 				     Library Functions Manual					   auth_for_terminal_es(3)

NAME
auth_for_terminal_es - determine whether a given user is authorized for login on a given terminal (Enhanced Security) LIBRARY
Security Library - libsecurity.so SYNOPSIS
#include <prot.h> int auth_for_terminal_es( struct es_passwd *prpwd, struct es_term *prtc); PARAMETERS
prpwd Specifies a pointer to the protected profile structure prtc Pointer to a terminal control structure DESCRIPTION
The auth_for_terminal_es() function determines whether the username associated with the prpwd parameter is authorized for logins on the terminal associated with the prtc parameter. The determination is based on the username (prpwd->uflg->fg_name and prpwd->ufld->fd_name), the terminal name (prtc->uflg->fg_devname, prtc->ufld->fd_devname), and the associated device assignment database entry (fields uflg->fg_users and ufld->fd_users). If either parameter is NULL or if either the username or terminal name is NULL, the function returns 1. If the device assignment entry corresponding to the given terminal is not found, a 1 is returned. If the device assignment entry has no list of authorized users, or if the username associated with the prpwd parameter is present in the list, then auth_for_terminal_es() routine returns 1. If there is a list of authorized users, but the associated username is not found in that list, this function returns 0. RETURN VALUES
A return of 1 indicates that the user is authorized for logins on the indicated terminal A return of 0 indicates that the user is not authorized for logins on the indicated terminal NOTES
In order to quickstart a program, the program must be linked as follows: -lsecurity -ldb -laud -lm See the shared library discussion in the Programmer's Guide for more information about using the quickstarting feature. The auth_for_terminal_es() function is called as part of login processing for enhanced security. RELATED INFORMATION
getespwent(3), getestcent(3), getesdvent(3) Security delim off auth_for_terminal_es(3)
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy