Skip to content

SSH Transfer File

Secure Shell (SSH) Protocol is a protocol that uses encryption to secure a connection between client and server. The encrypted data is user authentication, commands, output, and file transfers. SSH is used in networks for the following requirements:

  • File transfers run interactively and automatically
  • Provide secure access for users
  • Execute commands remotely (on the server)

Below is an example of executing commands to the remote server using the SSH protocol and storing the output on the local computer. We use the Dago Transfer application that makes it easy for users without having to understand the operating system of the remote server, so users only need information on access to the server via SSH such as:

  • IP Address / Hostname
  • Username
  • Password
  • Prompt (‘#’ for root and ‘$’ besides root)

Then the user must know what output from the command will be captured via SSH. The Datastep Transfer application provides options to run multiple commands in sequence. The next step is to try to access the server that has SSH access (SSH Server) and execute the command to get the output and store it locally.

First, open the Datastep Transfer application. Then add Datastep by clicking button of Add Datastep.

Datastep Console

Second, select Datastep type that available. Select Filegen. Then click OK.

Datastep Type Dialog

Third, the form for Datastep Filegen will be seen with the default name Untitled.filegen. Then select the Generator by clicking the button of Generator…

Filegen Untitled

Fourth, dialog Generator List will be seen. Select Simple SSH for access standard SSH. Click OK.

Generator List Dialog

Fifth, the form of Simple SSH Generator will be seen.

Simple SSH Form

Sixth, fill in the form for Hostname (IP Address), User name, Password, and OS Prompt.

Fill SSH Form

Seventh, add Command with click button of Add Command.

Add Command

Eighth, fill in the command text with the command to be executed. If you want to run multiple commands, click Add Command again.

Fill Text Command

Ninth, save the generator by clicking the Save button above. Fill in the name of the generator.

Datastep Name Dialog

Tenth, for testing the generator by clicking the Preview button. If the process is successful, a data record will appear below. Record explains the file name, file size, and date the file was created.

File Result

Hopefully the Datastep Transfer application can help you.

Thanks and Regards.

Leave a Reply

Your email address will not be published.