I was asked to integrate SSH public key authentication to my code (to avoid using passwords when logging into a server). I have searched the web but I'm not sure if I have the terms wrong - I'm not finding any examples. Does anyone know where I can look or can someone recommend a book?
What kind of communication are you trying to enable? SSH is used to open a terminal connection to a remote machine (like Telnet, only more secure). As such, it's rarely used in an application - you'd use the SSH client from the command line. Sometimes it's used to enable secure FTP transfers, though (and then it's called SFTP). So ... what exactly does this code do?