Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-11-2009, 08:55 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Differences between scp and ftp

What is the differences between scp and ftp?
Old 02-11-2009, 09:05 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,927

Rep: Reputation: 2631Reputation: 2631Reputation: 2631Reputation: 2631Reputation: 2631Reputation: 2631Reputation: 2631Reputation: 2631Reputation: 2631Reputation: 2631Reputation: 2631
scp: encrypted, including username/passwd; part of ssh suite, uses port 22; can put a file anywhere you have privelege to
ftp: plaintext, inc user/passwd, uses ports 20, 21; usually restricted to an ftp dir on server
1 members found this post helpful.
Old 02-11-2009, 09:06 PM   #3
LQ Newbie
Registered: Feb 2009
Distribution: Fedora & OpenSolaris 8
Posts: 9

Rep: Reputation: 1
scp is secure copy ftp is file transfer protocol.

both do file transfers but scp is secure & encrypted while ftp is plain text...
(thats the basics. other senior guys in here would be able to elaborate more.)
also SCP uses any port you specify -
while ftp generally uses port 21 and sends the id/password in plain text (open to scanning)

you might want to also look at SFTP that uses port 22.
1 members found this post helpful.
Old 02-12-2009, 07:45 PM   #4
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
scp is a tool to copy files to/from remote servers using an SSH channel. Unlike ssh access it only runs a single copy command. Just as ssh it has full access to the file system, only limited by the permissions of the login user account.

ftp is also tool deal with files on a remote server, but it's security measures are bit weaker, and it allows only access to the ftp root directory of the login user account.


Last edited by servat78; 02-19-2009 at 12:22 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow performance with Samba, but not FTP, SCP stealth210 Slackware 19 01-15-2008 04:53 AM
ftp/scp tool and technique ufmale Linux - Software 3 07-25-2007 08:11 AM
why is scp slow and ftp fast on same connection fpiergen Linux - Networking 1 04-11-2007 08:57 PM
Ftp or SCP (ssh key) vladoportos Debian 2 02-20-2006 09:58 AM
Linux/UNIX differences with vi and ftp ascii transfers KenMadsen Linux - Newbie 2 06-20-2005 10:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration