Top Banner
Share files easily between computers using sſtp Tushar B. Kute [email protected]
29
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Share File easily between computers using sftp

Share files easily between computers using sftp

Tushar B. [email protected]

Page 2: Share File easily between computers using sftp

sftp

● The SSH File Transfer Protocol (also Secure File Transfer Protocol, or SFTP) is a network protocol that provides file access, file transfer, and file management functionalities over any reliable data stream.

● It was designed by the Internet Engineering Task Force (IETF) as an extension of the Secure Shell protocol (SSH) version 2.0 to provide secure file transfer capabilities.

● This protocol assumes that it is run over a secure channel, such as SSH, that the server has already authenticated the client, and that the identity of the client user is available to the protocol.

Page 3: Share File easily between computers using sftp

sftp server and client

● SFTP client– It is a command-line program that implements the client

part of this protocol. As an example, the sftp program supplied with OpenSSH implements this.

– Some implementations of the scp program support both the SFTP and SCP protocols to perform file transfers, depending on what the server supports.

● SFTP server– There are numerous SFTP server implementations both for

UNIX, Windows and z/OS. The most widely known is perhaps OpenSSH, but there are also proprietary implementations. Typically the port used is 22. SFTP file transfer protocol is part of SSH protocol suite.

Page 4: Share File easily between computers using sftp

What is OpenSSH?

● OpenSSH is a free open source set of computer tools used to provide secure and encrypted communication over a computer network by using the ssh protocol.

● Many people, new to computers and protocols, create a misconception about OpenSSH, they think it is a protocol, but it is not, it is a set of computer programs that use the ssh protocol.

● OpenSSH is developed by the Open BSD group and it is released under Simplified BSD License.

● A main factor which has made possible for OpenSSH to be used so much among system administrators is its multi-platform capability and very useful nice features it has. The latest version is OpenSSH 6.4 which has been released on November 8, 2013.

Page 5: Share File easily between computers using sftp

Why to use sftp over ftp/telnet?

● The most important reason why should use OpenSSH tools over ftp and telnet is that all communications and user credentials using OpenSSH are encrypted, they are also protected from man in the middle attacks.

● If a third party tries to intercept your connection, OpenSSH detects it and informs you about that.

Page 6: Share File easily between computers using sftp

Features of OpenSSH

● Secure Communication● Strong Encryption (3DES, Blowfish, AES, Arcfour)● X11 Forwarding (encrypt X Window System traffic)● Port Forwarding (encrypted channels for legacy protocols)● Strong Authentication (Public Key, One-Time Password and

Kerberos Authentication)● Agent Forwarding (Single-Sign-On)● Interoperability (Compliance with SSH 1.3, 1.5, and 2.0 protocol

Standards)● SFTP client and server support in both SSH1 and SSH2 protocols.● Kerberos and AFS Ticket Passing● Data Compression

Page 7: Share File easily between computers using sftp

OpenSSH Requirements

● OpenSSH can be installed on any kind of Linux systems and any kind of network connections.

● I have used Ubuntu and Linux Mint in the demonstration.

● Laptop-1: – Dell Vostro with Ubuntu 14.04.– Connected physically to network.

● Laptop-2: – Toshiba Satellite with Linux Mint 17.1– Connected using Wi-Fi to network.

Page 8: Share File easily between computers using sftp

Setup in my experiments

Laptop-1 Laptop-2

COPY

Page 9: Share File easily between computers using sftp

Installation of OpenSSH

Laptop-2

Page 10: Share File easily between computers using sftp

OpenSSH Started on Laptop-2

Page 11: Share File easily between computers using sftp

Check IP of Laptop-1

Page 12: Share File easily between computers using sftp

Check IP of Laptop-2

Page 13: Share File easily between computers using sftp

On Laptop-1

● I want to access the files in Laptop-1 from Laptop-2.● Use following command to get connected Laptop-1 to

Laptop-2 using sftp.

Authentication: yes

Username of Laptop-2

Page 14: Share File easily between computers using sftp

Asks the password

Type laptop-2 password here

Page 15: Share File easily between computers using sftp

sftp prompt

Page 16: Share File easily between computers using sftp

See the files on Laptop-2

Page 17: Share File easily between computers using sftp

See the same files on Laptop-1

● Type ls on sftp prompt of Laptop-1

Page 18: Share File easily between computers using sftp

Copy files (Laptop-2)

I want to copy this file to Laptop-1

Page 19: Share File easily between computers using sftp

Use 'get' command to copy file (Laptop-1)

Downloaded to /home folder

Page 20: Share File easily between computers using sftp

Check the copied file

Page 21: Share File easily between computers using sftp

Check other sftp commands by typing help

Page 22: Share File easily between computers using sftp

Other ways to copy files

● Once authentication is completed and connection is done successfully, we can also use following ways to copy the files.– Web browser.– File browser.

Page 23: Share File easily between computers using sftp

Open firefox

Page 24: Share File easily between computers using sftp

Type username and password

Page 25: Share File easily between computers using sftp

Files of Laptop-2 are visible on Laptop-1

Page 26: Share File easily between computers using sftp

I want to download a file

Page 27: Share File easily between computers using sftp

Click on the filename and save it

Page 28: Share File easily between computers using sftp

Check your file browser now

By clicking here, you may access the files of laptop-2 directly by file browser

Page 29: Share File easily between computers using sftp

[email protected]

Thank you

This presentation is created using LibreOffice Impress 4.2.7.2, can be used freely as per GNU General Public License

Blogshttp://digitallocha.blogspot.inhttp://kyamputar.blogspot.in

Web Resources http://tusharkute.com