473,394 Members | 1,645 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,394 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 11267
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.