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
- 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.
Second, select Datastep type that available. Select Filegen. Then click OK.
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…
Fourth, dialog Generator List will be seen. Select Simple SSH for access standard SSH. Click OK.
Fifth, the form of Simple SSH Generator will be seen.
Sixth, fill in the form for Hostname (IP Address), User name, Password, and OS Prompt.
Seventh, add Command with click button of 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.
Ninth, save the generator by clicking the Save button above. Fill in the name of the generator.
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.
Hopefully the Datastep Transfer application can help you.
Thanks and Regards.