For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 0 0 1

SFTP certificate upload from Windows client

Does anyone know how to follow the manual below to include a certificate in the SFTP solution having only a windows client available?

"Update the authorized_keys file on the server with the content of id_rsa.pub From the command prompt, ftp to.

sftp> cd .ssh

sftp> put id_rsa.pub authorized_keys

sftp> chmod 600 authorized_keys

sftp> quit"

dss-rest-apidssdatascope-selectcertificatesftp
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
52.4k 134 44 63

@Joram.Hollander

You can use puttygen.exe and psftp.exe from the putty package to generate keys and securely transfer files, respectively.

1. Run puttygen.exe to generate public and private keys (Generate button)

2. Then, save a private key (Save private key button). The file name could be id_rsa.ppk

3. Then, copy a public key from the textbox (as shown below) and paste it to the notepad. The text is started with ssh-rsa and ended with rsa-key-<date>

4. Next, save the file as id_rsa.pub

5. Next, use psftp.exe to connect to the DSS FTP server. You need to enter a password to access the server

psftp r<user id>@hosted.datascope.reuters.com

6. Put the id_rsa.pub from the fourth step to .ssh/authroized_key

sftp> cd .ssh
sftp> put id_rsa.pub authorized_keys
sftp> chmod 600 authorized_keys
sftp> quit

7. Run psftp.exe with the private key (id_rsa.ppk) to access the server. This time, it will not ask for a password

psftp r<user id>@hosted.datascope.reuters.com -i id_rsa.ppk

putty.png (16.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.