97
Chapter 6: Secure SSH Tunneling & SDT Connector
6.7 SDT Connector Public Key Authentication
SDTConnectorcanauthenticateagainstanSSHgatewayusingyourSSHkeypairratherthanrequiringyourtoenteryour
password. This is known as public key authentication.
TousepublickeyauthenticationwithSDTConnector,youmustrstaddthepublicpartofyourSSHkeypairtoyourSSH
gateway:
• EnsuretheSSHgatewayallowspublickeyauthentication.Thisistypicallythedefaultbehavior
• Ifyoudonotalreadyhaveapublic/privatekeypairforyourclientcomputer(theonewhichtheSDTConnectorisrunning)
generate them now using ssh-keygen, PuTTYgenorasimilartool.YoumayuseRSAorDSA,howeveritisimportantthat
you leave the passphrase field blank:
o PuTTYgen: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
o OpenSSH: http://www.openssh.org/
o OpenSSH(Windows): http://sshwindows.sourceforge.net/download/
• UploadthepublicpartofyourSSHkeypair(thisleistypicallynamedid_rsa.pub or id_dsa.pub)totheSSHgateway,or
add it to the .ssh/authorized keys in your home directory on the SSH gateway
• Next,addtheprivatepartofyourSSHkeypair(thisleistypicallynamedid_rsa or id_dsa)toSDTConnector.
Click Edit: Preferences: Private Keys: Add,locatetheprivatekeyleandclickOK
You do not have to add the public part of your SSH key pair; it is calculated using the private key.
SDTConnectorwillnowusepublickeyauthenticationwhenconnectingthroughtheSSHgateway(ConsoleServer).Youmay
havetorestartSDTConnectortoshutdownanyexistingtunnelsthatwereestablishedusingpasswordauthentication.
IfyouhaveahostbehindtheConsoleServerthatyouconnecttobyclickingtheSSHbuttoninSDTConnector,youmayalso
wishtocongureaccesstoitforpublickeyauthenticationaswell.ThiscongurationisentirelyindependentofSDTConnector
andtheSSHgateway.YoumustconguretheSSHclientthatSDTConnectorlaunches(e.g.Putty,OpenSSH)andthehost's
SSHserverforpublickeyauthentication.Essentially,whatyouareusingisSSHoverSSH,andthetwoSSHconnectionsare
entirely separate.