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
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
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.
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
Vivek,
I am looking for linux only. We need to store multiple username passwords of SSH.
Can you please suggest something.
Tnx
I’ve two solutions for you. Here is my shell script:
Solution # 1 Shell script
sshconnect.sh
Above is my scriptCode:#!/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
~/.ssh.profiles file - stores SSH Username | IP and Optional port number:
All you have to do is copy above two files and customize ~/.ssh.profiles file and run script as follows: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
Run asCode:chmod +x sshconnect.sh
You will getCode:./sshconnect.sh
Solution # 2 GUI toolsCode:------------------------------------ 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 ...
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
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
Thanks for the info but anything which can work in windows desktop? All I see is linux based![]()
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
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 sameor just use apt-get command to install putty under Linux
Code:apt-get install putty
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
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
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.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)