nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Any SSH client which can store 100's of login profile?

This is a discussion on Any SSH client which can store 100's of login profile? within the Linux software forums, part of the Linux Getting Started category; Is there any SSH client like putty which can store 100's of login profiles. We don't have to type username ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-05-2007, 02:13 PM
Junior Member
User
 
Join Date: Nov 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
deltamails
Default Any SSH client which can store 100's of login profile?

Is there any SSH client like putty which can store 100's of login profiles. We don't have to type username password each time we want to access some ip.
Tnx
Reply With Quote
  #2 (permalink)  
Old 16-05-2007, 07:29 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Do you want client under Linux/UNIX or Windows? Under Linux you can write a shell script to do the same. Let me know so that I can give you some suggestions.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 16-05-2007, 10:52 PM
Junior Member
User
 
Join Date: Nov 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
deltamails
Default

Vivek,
I am looking for linux only. We need to store multiple username passwords of SSH.
Can you please suggest something.
Tnx
Reply With Quote
  #4 (permalink)  
Old 17-05-2007, 01:52 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

I’ve two solutions for you. Here is my shell script:
Solution # 1 Shell script
sshconnect.sh
Code:
#!/bin/bash
PROFILES=~/.ssh.profiles
aindex=1
hosts=( null )
# read array
function readHosts(){
 exec 3<&0
 exec 0<$PROFILES
 while read line
 do
    rline=$(echo $line | egrep -v "^#" | sed '/^$/d')
    if [ "$rline" != "" ]; then
        user=$(echo "$rline" |  awk -F'|' '{ print $1}')
        ip=$(echo "$rline" |  awk -F'|' '{ print $2}')
        port=$(echo "$rline" |  awk -F'|' '{ print $3}')
        [ "$port" == "" ] && port=22 || :
        hosts[$aindex]=$(echo "ssh -p$port $user@$ip")
        aindex=` expr $aindex + 1 `
    fi
 done
 exec 0<&3 
}
# display choice and connect to server
function displayHosts(){
  echo "------------------------------------"
  echo "Sr# : SSH Server Host Name"
  echo "------------------------------------"
  for (( i=1; i<$aindex; i++ ))
  do
        echo "#$i : ${hosts[$i]}"
  done
  read -p "Enter host number: " myHostNumber
  echo "Connecting to ${hosts[$myHostNumber]} ..."
  ${hosts[$myHostNumber]}
}

readHosts
displayHosts
Above is my script
~/.ssh.profiles file - stores SSH Username | IP and Optional port number:
Code:
#format USER|IP|Port
usr1|192.168.1.1|22
usr2|192.168.1.2
usr3|192.168.1.3
vivek|vpn.nixcraft.in|555
All you have to do is copy above two files and customize ~/.ssh.profiles file and run script as follows:
Code:
chmod +x sshconnect.sh
Run as
Code:
./sshconnect.sh
You will get
Code:
------------------------------------
Sr# : SSH Server Host Name
------------------------------------
#1 : ssh -p22 usr1@192.168.1.1
#2 : ssh -p22 usr2@192.168.1.2
#3 : ssh -p22 usr3@192.168.1.3
#4 : ssh -p555 vivek@vpn.nixcraft.in
Enter host number: 4
Connecting to ssh -p555 vivek@vpn.nixcraft.in ...
Solution # 2 GUI tools
If you want GUI tool i recommend gpass; see image below. You can just select host and connect it




It is upto you which solution you want to use. See Linux password manager that also works under Windows / OS X | nixCraft
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #5 (permalink)  
Old 17-05-2007, 07:16 AM
Junior Member
User
 
Join Date: Nov 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
deltamails
Default

Thanks for the info but anything which can work in windows desktop? All I see is linux based
Reply With Quote
  #6 (permalink)  
Old 17-05-2007, 11:14 AM
Member
User
 
Join Date: Jul 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ricc
Default

Vivek,

Does your script store the passwords too?. I think he asked for something which can store the password too.

Is this possible with the script that you provided?

Apart from this, this is a useful script. Is this put up in your blog and tips& tricks section?.

ricc
Reply With Quote
  #7 (permalink)  
Old 17-05-2007, 02:35 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
Originally Posted by deltamails View Post
Thanks for the info but anything which can work in windows desktop? All I see is linux based
Quote:
Originally Posted by ricc View Post
Does your script store the passwords too?. I think he asked for something which can store the password too.
You can use gpass to store both username and password; script can be modified to store password as well but which is bit risky as it will be in a plain text format No it is not there is tips and tricks section

For windows desktop putty is good and I think Putty also works under Linux tooo http://the.earth.li/~sgtatham/putty/latest/putty-0.60.tar.gz just download compile the same or just use apt-get command to install putty under Linux
Code:
apt-get install putty
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #8 (permalink)  
Old 17-05-2007, 02:47 PM
Junior Member
User
 
Join Date: Nov 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
deltamails
Default

Vivek,
Thanks but I am using putty for years and its good. I am looking something for windows OS which can store the details
I appreciate your time and reply but it's not solving my purpose.

Thanks
Reply With Quote
  #9 (permalink)  
Old 17-05-2007, 04:26 PM
Junior Member
User
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
asterisk is on a distinguished road
Default

Try Penguinet Silicon Circus - PenguiNet - Windows SSH Client I use it on Windows the cost is low and they have a 30 day trial. It will do what you are asking.
Reply With Quote
  #10 (permalink)  
Old 20-08-2007, 06:57 PM
jesse's Avatar
Junior Member
User
 
Join Date: Aug 2007
OS: gentoo&debian
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jesse is on a distinguished road
Default

You can start putty with several parameters (create a link):

e.g.
Code:
putty.exe -l myuser -pw mypassword -load "mysession"

there are more parameters available. just take a look at the docs.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Parse XML file and store data in array in shell scripting Nishanthhampali Shell scripting 6 15-12-2009 07:37 PM
Vpn client zafar466 Ubuntu / Debian 0 26-02-2008 02:12 PM
dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1 raj Mail Servers 1 15-11-2007 10:43 AM
Linux / UNIX set increase the number of failed login retries with SSH client sweta Getting started tutorials 0 12-06-2007 02:35 AM
Ldap profile kasimani Linux software 0 27-10-2006 12:13 AM


All times are GMT +5.5. The time now is 12:51 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38