# How can I specify which key to use for a connection ?

 0 I have about 15 public/private key pairs associated with a single windows account. I am running windows tectia client 6.3*. One of server connections has increased their security to only try 5 different keys before rejecting the connection. How can I associate a particular public/private key pair as the priority for this connection? I don't want to try all 15 keys. I just want to say when connecting to this IP Address with this username, use this key. Can anyone point me in the right direction.The other 14 keys are in use for different connections. asked Feb 06 '14 at 21:09 surfbum 1●1●1●3 Roman ♦♦ 773●5●8●17

 1 I don't believe there is a way to associate a specific private key to use for a connection with the graphical terminal client. However when using the command line it's possible to give the desired key as a parameter using the -K option, such as: sshg3 -K C:\path\to\privatekey user@host.example.com  Once you have authenticated using the command line client you can then connect with the graphical terminal client to the same host without requiring to re-authenticate. answered Feb 06 '14 at 22:49 Roman ♦♦ 773●5●8●17
 0 I ended up using the "identification" file to tell tectia client witch key to use first. This doesn't do exactly what I wanted because it is not associated with a particular profile but it did fix the profile that was broken by forcing all profiles to try the key listed in the "identification" file first. The command line approach also would have been good but I don't have the time to rewrite the software that produce the script to automate sftp. answered Feb 06 '14 at 23:23 surfbum 1●1●1●3
 toggle preview community wiki

By Email:

Markdown Basics

• *italic* or __italic__
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

Tags:

×38
×19
×12

Asked: Feb 06 '14 at 21:09

Seen: 4,320 times

Last updated: Feb 06 '14 at 23:25