Pragma Systems Technical Forum
Home
»
Community
»
FortressSSH
public key authentication to another SSH server
https://forums.pragmasys.com/Topic270.aspx
By cpms
-
11/2/2014 8:05:58 PM
Hello Pragma staff,
Our server is a Windows 2008 R2 server using Pragma SFTP client.
1. What is the default location of the key files? is this the folder?
C:\Users\<user>\AppData\Roaming\PragmaSSH
2. Since we are migrating from an existing server to this new server, We tried to replace the files (id_dsa, id_dsa.pub, id_rsa, id_rsa.pub) with the files from old server.
However, when we try to connect to another SSH_SERVER_1 (which is a Unix server using Openssh server), password is prompted. In the old server, public key authentication was setup before and no password is required to connect. After further testing, it works passwordless if we connect using this command
sftp -i "C:\Users\<user>\AppData\Roaming\PragmaSSH\id_rsa.pub" xxx@SSH_SERVER_1
What is the cause of it? Is there any option such that "-i id_rsa.pub" is not provided?
Note:
We successfully connect to SSH_SERVER_2 (which is a window server using Tectia SSH server) without providing a password using
sftp xxx@SSH_SERVER_2
or
sftp -i "C:\Users\<user>\AppData\Roaming\PragmaSSH\id_dsa.pub" xxx@SSH_SERVER_2
However please note that we cannot add "-i id_rsa.pub" in all scripts, this is because we failed to connect to SSH_SERVER_2 passwordless with "-i id_
r
sa.pub"
Thank you very much for your help!
Samuel
By bethredd
-
11/3/2014 3:32:55 AM
Hello,
You can force the client to use the id_dsa key by creating a client configuration file, config, in the users %APPDATA%\PragmaSSH directory with the following line
identityfile2=d:\data\debug\id_dsa