Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: sftp access via tunnel server by privatekey and passphrase

Hiro.A wrote:

Because my account was gave to me from my organization with priv key, so I cannot control my private key file. I cannot use sftp with any other private keys. (ex. no passphrase key)

This is my 'security reason'.

Can you make sense ?

But the private key is encrypted locally only! You can remove the protection from your copy of the private key. Just load it into PuTTYgen, and remove the passphrase and save it again. Of course, you need to take a reasonable care to protect the unencrypted private key.
https://winscp.net/eng/docs/faq_passphrase#unprotected
Hiro.A

Re: sftp access via tunnel server by privatekey and passphrase

martin wrote:

What "security reason"? That's pretty vague.


Because my account was gave to me from my organization with priv key, so I cannot control my private key file. I cannot use sftp with any other private keys. (ex. no passphrase key)

This is my 'security reason'.

Can you make sense ?
martin

Re: sftp access via tunnel server by privatekey and passphrase

What "security reason"? That's pretty vague.
Hiro.A

Re: sftp access via tunnel server by privatekey and passphrase

Oh, I understood, but unfortunately I must use the private keyfile with passphrase for security reason.

I guess you do not want to offer the way to save any passphrase string , if so , can you offer us some interaction such as passphrase input dialog ?

Regards,
martin

Re: sftp access via tunnel server by privatekey and passphrase

hiro@jp wrote:

You mean I can use the "rawsettings=" way ?

I mean to save the private key without passphrase.
hiro@jp

Re: sftp access via tunnel server by privatekey and passphrase

You mean I can use the "rawsettings=" way ?

Could you tell me the detail ?

For example,

SessionOption.AddRawSettings("TunnelPasswordPlain", "unencrypedPassPhrase");

Is this correct ?
martin

Re: sftp access via tunnel server by privatekey and passphrase

You can use an unencrypted private key.
As you hardcode the passphrase anyway, there's no big difference, particularly if you limit access permissions to the private key file.
hiro@jp

sftp access via tunnel server by privatekey and passphrase

Hi,

I am trying to make C# program which accesses some server thru tunnel server. Both servers are authenticated by priv key / passphrase. But to tunnel server, I cannot give any passphrase string by rawsetting "TunnelPasswordPlain=". I guess winscp.net may not have any way to give plain passphrase string to tunnel server authentication.

So, could you consider any of next ideas ?

1. To release some way of giving passphrase string to tunnel server like "TunnelPassphrasePlain=" or so.
2. Some interaction by passphrase entering dialog , or so.

I do not want to use pageant.exe.

I am very happy if you consider above. Thanks.

...Please forgive me if my english is broken. Any question is welcome. Regards.