nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-16-2007, 02:13 PM
Junior Member
User
 
Join Date: Nov 2006
Posts: 14
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
Sponsored Links
  #2 (permalink)  
Old 05-16-2007, 07:29 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 917
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 05-16-2007, 10:52 PM
Junior Member
User
 
Join Date: Nov 2006
Posts: 14
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 05-17-2007, 01:52 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 917
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 05-17-2007, 07:16 AM
Junior Member
User
 
Join Date: Nov 2006
Posts: 14
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 05-17-2007, 11:14 AM
Member
User
 
Join Date: Jul 2005
Posts: 85
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 05-17-2007, 02:35 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 917
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #8 (permalink)  
Old 05-17-2007, 02:47 PM
Junior Member
User
 
Join Date: Nov 2006
Posts: 14
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 05-17-2007, 04:26 PM
Junior Member
User
 
Join Date: May 2007
Posts: 3
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 08-20-2007, 06:57 PM
jesse's Avatar
Junior Member
User
 
Join Date: Aug 2007
My distro: gentoo&debian
Posts: 12
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

Bookmarks


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 On

Similar Threads

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


All times are GMT +5.5. The time now is 04:27 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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