Transcript Slide 1

4/24/2020

SFTP

Secure File Transfer Protocol 1

Agenda

 What is SFTP?  How does it work?

 Types of SFTP  Downloading a Client  Accessing the SUN System  Transferring files 4/24/2020 2

Vocabulary

      

Protocol

- a set of rules that govern how information is exchanged

FTP

File Transfer Protocol;

transfers files between computers. Runs on Port 21. Not Secure. (NOT available after 10-1-2008)

SFTP

Secure File Transfer Protocol;

same as FTP but files are encrypted on the line. Runs on Port 22. Secure. (available after 10 1-2008)

FTPS –

FTP/SSL; FTP over Secure Socket Layer. Runs on Port 21. Secured by SSL. (NOT available after 10-1-2008)

scp-

Secure copy. Secure. Runs on Port 22.

Client

– The machine generating the request

Server

– The machine ready and willing to process the request 4/24/2020 3

What is SFTP?

 Its main function is the secure file transfer between a local and a remote computer. It uses Secure Shell (SSH) • Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices • The encryption used by SSH provides confidentiality and integrity of data

How does SFTP work?

 Software on one computer talks to software on another computer  Files encrypted for secure transfer of data from one computer to the other •

 XnYÁT ÷ pà >_ï K¡‚|¬½ãH[ÇQ„jcä6”Deƒö ^j ºö B^È Œè፠þç½ 6T\W( <2¥Øå¬" ¡ ^4œW“Z S ÛÀ~T ð/«´ÇÇ AZóÑŠ *1Hò@ € œ— Iâ4MÐTÑã¡I TŒé!<2þ¶‘

4/24/2020 5

Getting Ready for SFTP

   Are there automated File Transfers currently happening with the SUN System?

Does the mainframe “push” the file to the SUN system? • Does the mainframe run SFTP client version? (Port 22) • If not, the mainframe staff will need send the file to an intermediate machine • If yes, the mainframe staff will need to re-write the automated script if it is using FTP so that it uses SFTP Does the SUN System “pull” the file from the mainframe?

• This function will still work after 10-1-08! • The SUN system can use FTP to establish a connection to another machine because no SUN system usernames and password exchanged.

Mainframes without SFTP

    FTP to a Windows machine • Use a Windows based SFTP client FTP to a linux machine • Linux has SFTP by default Automation with SFTP is not easy to set up • A separate class will be offered to cover the basics Use the SUN to “get” the file off the mainframe using FTP. (Requires an account on the mainframe)

Types of Windows SFTP clients

 Examples of versions available: • • http://www.freesshd.com/ http://www.winscp.net/  Which one should you use?

• Any client that you prefer • Keep in mind not all are free  Which will be demonstrated today?

• WinSCP

Downloading the Software

 Go to: http://www.winscp.net/eng/download.php

• Click on the installation package for WinSCP 4.1.6 and follow the prompts on the installation wizard

Downloading Software (cont’d)

 You may see a screen like this:  If so, click on the yellow bar across the top.

• A popup will appear, click on Download File

Downloading (Cont’d)

 Click on Run to Install it

Setup Wizard

Typical Installation

Choose Interface

   Norton Commander displays both file systems in the same window Explorer like displays remote file system only Can change it later

Norton Commander – like Interface

Explorer-like Interface

Install

Finish

Accessing

  Startup WinSCP The first time, you will see this screen  You will probably want to answer “yes” this so you don’t see this message again.

Accessing (Cont’d)

 How do we find the SFTP address (host name)?

• Go to the State website • Look at address bar in IE • Ex:

http

://172.19.13.10

This is the host name (IP address) • Enter host name, your username and password • Click on Login 4/24/2020 20

Choose Unix Server Environment

Save default directories (Folders)

Transferring files

   Files transferred • From • PC or E-mail attachment (saved in a PC directory) • CD • To • Designated Directory (SUN System) Or • • From • SUN System To • • PC Shared network drive How • Open Folder • Click, hold, drag, drop

Unemployment Insurance Reports (UIR) 581data.txt

 From • PC  To • /home/logname

Data Validation (DV) population3.txt

 Extract files • From • CD • • E-mail saved to PC Shared drive  To • /opt/dv/data • ../../opt/dv/data

Benefit Accuracy Measurement (BAM) bamdata.txt

 From • /home/logname  To • PC

Review

     Secure File Transfer Protocol (SFTP) is used to transfer files securely between computers; WinSCP SFTP server requires authorized access, encrypted transfer Files are moved by dragging and dropping from a PC to a designated directory (SUN System), or from the SUN System to a PC Examples given for BAM, DV, and UIR Notify your SUN System Administrator with any problems 4/24/2020 27