public key authentication to another SSH server


Author
Message
Beth Redd
Beth Redd
Pragmateer (789 reputation)Pragmateer (789 reputation)Pragmateer (789 reputation)Pragmateer (789 reputation)Pragmateer (789 reputation)Pragmateer (789 reputation)Pragmateer (789 reputation)Pragmateer (789 reputation)Pragmateer (789 reputation)
Group: Administrators
Posts: 81, Visits: 180
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



Beth Redd
cpms
cpms
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)
Group: Forum Members
Posts: 1, Visits: 8
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_rsa.pub"

Thank you very much for your help!

Samuel

Edited 10 Years Ago by cpms
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search