473,320 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Which is fast FTP or SSH ?

296 100+
I want to know which is fast -->

FTP or SSH ?

Is there any better alternative ?
Feb 9 '07 #1
21 11263
Motoma
3,237 Expert 2GB
I want to know which is fast -->

FTP or SSH ?

Is there any better alternative ?
It depends on what you are trying to do.
What are you trying to do? File sharing? Uploading? Remote shell? X11 Forwarding?
Please elaborate.
Feb 9 '07 #2
pankajit09
296 100+
I want to upload and download some files from a remote machine.
Feb 9 '07 #3
Motoma
3,237 Expert 2GB
I want to upload and download some files from a remote machine.
How remote? Is it the local LAN?
Feb 9 '07 #4
combas
2
Basically FTP will be faster no matter what, if you are only trying to trasfer a file to another computer.

FTP stands for file transfer protocol

SSH stands for secure shell (note the security)

Security is great, but it slows down the transaction, very slightly probably not even noticeable.
Feb 9 '07 #5
Motoma
3,237 Expert 2GB
Basically FTP will be faster no matter what, if you are only trying to trasfer a file to another computer.

FTP stands for file transfer protocol

SSH stands for secure shell (note the security)

Security is great, but it slows down the transaction, very slightly probably not even noticeable.
Welcome to The Scripts combas! Thanks for your response.
I agree entirely with your accurate summary of FTP and SSH, however, in addressing the second part of the question, there are a lot of other, quicker alternatives.
Samba can be used if the computers are on the same network. AFP is another protocol which is quicker than FTP. And if you want to get into really quick-and-dirty solutions, piping files through nc is going to be the quickest, dirtiest technique of all.
Feb 9 '07 #6
pankajit09
296 100+
How remote? Is it the local LAN?

No its not the local LAN.

Its the distance of India and US .
Feb 12 '07 #7
hatemj
4
You can use Secured FTP (SFTP ) instead of FTP.it is available in the net and you can download it. Some packadges include both SSH and SFTP.

With my regards
Feb 12 '07 #8
winnie
1
The answer is: both :) Use FTP to upload a Zip and SSH to unzip it there. If you don't have ssh connectivity you may use ZipDeploy.
Feb 21 '07 #9
Motoma
3,237 Expert 2GB
Welcome to theScripts winnie.
Please refrain from placing commercial software advertisements in our message boards.
Feb 21 '07 #10
ghostdog74
511 Expert 256MB
whatever it is, FTP or SSH, it also depends on the speed of your network connections.
Feb 23 '07 #11
pankajit09
296 100+
Welcome to The Scripts combas! Thanks for your response.
I agree entirely with your accurate summary of FTP and SSH, however, in addressing the second part of the question, there are a lot of other, quicker alternatives.
Samba can be used if the computers are on the same network. AFP is another protocol which is quicker than FTP. And if you want to get into really quick-and-dirty solutions, piping files through nc is going to be the quickest, dirtiest technique of all.
Can you tell me more about AFP and piping files through nc ?
Feb 24 '07 #12
Motoma
3,237 Expert 2GB
Can you tell me more about AFP and piping files through nc ?
AFP is Apple's proprietary network sharing. It works quite well, and there are utilities to use it on both Windows and Linux.

nc is the tool netcat. It is a very handy thing to know how to use.
On your server you would:
Expand|Select|Wrap|Line Numbers
  1. $ nc -l 4999 | df of=filename.ext
  2.  
and on the client you would
Expand|Select|Wrap|Line Numbers
  1. $ dd if=filename.ext | nc server.com 4999
  2.  
Be careful with this technique, as It is quite insecure. Anyone can send data between when you open the port and when the first connection closes.
Feb 24 '07 #13
pankajit09
296 100+
AFP is Apple's proprietary network sharing. It works quite well, and there are utilities to use it on both Windows and Linux.
Is AFP available in Debian ?

nc is the tool netcat. It is a very handy thing to know how to use.
On your server you would:
Expand|Select|Wrap|Line Numbers
  1. $ nc -l 4999 | df of=filename.ext
  2.  
and on the client you would
Expand|Select|Wrap|Line Numbers
  1. $ dd if=filename.ext | nc server.com 4999
  2.  
Be careful with this technique, as It is quite insecure. Anyone can send data between when you open the port and when the first connection closes.
That means if there is a file transfer going on between two machines through a port and if a third machine also does some transfer through the same port then the file might get corrupt ?
Feb 24 '07 #14
Motoma
3,237 Expert 2GB
Is AFP available in Debian ?
Dunno. Google it.

That means if there is a file transfer going on between two machines through a port and if a third machine also does some transfer through the same port then the file might get corrupt ?
No, it means if someone connects to the port before you, they could send anything and have it end up in that file.
Or, if they were watching your traffic, they could inject their own data into it.
Feb 24 '07 #15
pankajit09
296 100+
No, it means if someone connects to the port before you, they could send anything and have it end up in that file.
But if someone is already connected to a port then how can I connect ?
Feb 26 '07 #16
ghostdog74
511 Expert 256MB
That means if there is a file transfer going on between two machines through a port and if a third machine also does some transfer through the same port then the file might get corrupt ?
No it will not corrupt. Each connection to the FTP daemon is unique because of different source ports.
Feb 26 '07 #17
pankajit09
296 100+
No it will not corrupt. Each connection to the FTP daemon is unique because of different source ports.

So what is the problem with Netcat ?
Feb 26 '07 #18
ghostdog74
511 Expert 256MB
So what is the problem with Netcat ?
The netcat example presented by Motoma is typically used for network disk (OS) cloning/imaging. For your questoin, he is best position to answer. With regard to your original question about which is faster FTP or SSH. I can only say based on my experience, they are quite the same and i am talking about using passwords. (SSH can also use public keys). If SSH is using public keys, it may be a bit slower in the authentication part, but after that the data transfer speed depends on the link.
Feb 26 '07 #19
You can use Secured FTP (SFTP ) instead of FTP.it is available in the net and you can download it. Some packadges include both SSH and SFTP.

With my regards
Well, AFAIK the SFTP does not means for "Secured FTP" but rather "SSH File Transfer Protocol" and moreover does have nothing common with FTP. It's completely different protocol. On the other hand the FTPS is FTP over SSL channel (similar to HTTPS which is HTTP over SSL channel).

[removed URL]
Jul 29 '08 #20
Hi All,
This is my first ques?
can any bady tell what is the diff b/w koen shell and bash shell and cshell?
Jul 31 '08 #21
r035198x
13,262 8TB
Hi All,
This is my first ques?
can any bady tell what is the diff b/w koen shell and bash shell and cshell?
You should start your own thread for this.
Have you Googled those terms?
Aug 5 '08 #22

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Uwe Mayer | last post by:
Hi, Using PyQt I got a QListView with about 800 entries now (but its intended to be scalable up to about 3000). The first column contains numerical data. Now Qt does the sorting all by its self...
8
by: Neil | last post by:
I have a very puzzling situation with a database. It's an Access 2000 mdb with a SQL 7 back end, with forms bound using ODBC linked tables. At our remote location (accessed via a T1 line) the time...
22
by: Marc Mones | last post by:
Hello, I'working with IBM DB2 V8.1 and CLI/ODBC. I've got a problem with the following statement: ******************************************************************************** SELECT...
20
by: GS | last post by:
The stdint.h header definition mentions five integer categories, 1) exact width, eg., int32_t 2) at least as wide as, eg., int_least32_t 3) as fast as possible but at least as wide as, eg.,...
11
by: Olie | last post by:
This post is realy to get some opinions on the best way of getting fast comunication between multiple applications. I have scowered the web for imformation on this subject and have just found...
10
by: javuchi | last post by:
I just want to share some code with you, and have some comments and improvements if you want. This header file allocates and add and delete items of any kind of data from a very fast array: ...
95
by: hstagni | last post by:
Where can I find a library to created text-based windows applications? Im looking for a library that can make windows and buttons inside console.. Many old apps were make like this, i guess ...
19
by: Juha Nieminen | last post by:
If I'm not completely mistaken, the only reason why std::list::size() may be (and usually is) a linear-time operation is because they want std::list::splice() to be a constant-time operation, and...
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
20
by: mike3 | last post by:
Hi. (Xposted to both comp.lang.c++ and comp.programming since I've got questions related to both C++ language and general programming) I've got the following C++ code. The first routine runs in...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.