Lab Assignment 3 - sFTP file transfer - natureboy

6 downloads 122 Views 126KB Size Report
Lab Assignment 3 - sFTP file transfer. FTP is a protocol that allows the user to upload and download files back and forth between a local and remote computer.
Lab Assignment 3 - sFTP file transfer FTP is a protocol that allows the user to upload and download files back and forth between a local and remote computer. This can also be done using an ssh tunnel. This allows the client to encrypt everything that is being sent to the server, so that there is no chance of eavesdropping on the connection. Encryption and decryption happens on the client and server side, and requires a key that is only known to the participating parties. This is all pretty seamless, so it seems the same as doing regular FTP. SFTP requires an ssh server, and a special SFTP client. Anytime you use ftp to connect to a host, you need to tell the client certain things: host name -- name of the computer you are connecting to... user id -- you must have a user account on the machine that you are connecting to. -- on omega you have an account. it is

set up so that you use your UTA NETID to log on. -- on natureboy, you do not have an account... everyone uses the same account (student) -- if you don't have an account on the machine you are connecting to, you can sometimes log in as anonymous, using your email address as a password. when should you log in as anonymous on an ftp server? RIGHT = when you do not have a user id. WRONG = when you want to be anonymous.

sftp exercise: Downloading and Uploading files Using SSH!s SFTP client, download the following files. ftps://[email protected]/~student/images/defeat.jpg password: ****** ftps://[email protected]/~student/images/procrastination.jpg password: ****** ftps://[email protected]/~extra/images/motivation.jpg password: ****** Using SSH!s SFTP client, upload them to your public_html directory on omega. You may check to make sure you did it right by checking the following URLs: http://omega.uta.edu/~yourusername/defeat.jpg http://omega.uta.edu/~yourusername/procrastination.jpg http://omega.uta.edu/~yourusername/motivation.jpg Using SSH!s SFTP client, connect to the following servers and download the files listed:

ftps://natureboy.uta.edu/~student/Documents/failure.jpg username: student password: ****** ftps://natureboy.uta.edu/~student/Pictures/mediocrity.jpg username: student password: ****** Upload these files to a new folder called “extra” in your public_html folder. Check to make sure you did it right by looking at the following URLs: http://omega.uta.edu/~yourusername/extra/mediocrity.jpg http://omega.uta.edu/~yourusername/extra/failure.jpg