Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-27-2003, 02:31 AM
|
#1
|
Member
Registered: Oct 2003
Location: India
Distribution: Debian
Posts: 95
Rep:
|
difference between SSH and SCP
What is the difference between taking a backup(or copying a file over network) using SCP and SSH.If u can copy a file over network using SSH what is the need for SCP.Can any one explain
|
|
|
12-27-2003, 04:38 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
One is a secure shell (SSH), the other a secure copy (SCP). To my knowledge you cannot copy (secure or not) with SSH.
See man ssh and man scp.
|
|
|
12-27-2003, 12:07 PM
|
#3
|
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
|
scp (on Linux, any way) is part of the OpenSSH suite of tools. Basically it's an encrypted/strongly authenticated version of rcp (one of those nasty "r protocols").
ssh is a secure remote shell mechanism, so it doesn't have any kind of way to copy files between hosts. The whole job of ssh is to make you session act like a local shell on the remote box (like telnet).
We should be clear about what we are discussing, though. SSH (big letters) is the Secure SHell protocol. SSH.com has a commercial suite of products based on it (and I believe they also copyrighted "SSH"), and many other companies (such as Van Dyke) also make SSH tools. ssh (little letters) is the client program that implements SSH on most UNIX systems. In *BSD and Linux it's OpenSSH. OpenSSH is not just ssh though, there are scp, sftp, ssh-keygen, ssh-agent, sshd, etc, etc all of which do different things, but they use the same encryption and key handling techniques.
|
|
|
12-28-2003, 12:11 PM
|
#4
|
Member
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200
Rep:
|
Quote:
Originally posted by druuna
To my knowledge you cannot copy (secure or not) with SSH.
|
You can with sftp.
|
|
|
12-28-2003, 12:21 PM
|
#5
|
Member
Registered: Dec 2003
Location: Columbus, OH USA
Distribution: Debian Knoppix Kanotix Sidux
Posts: 73
Rep:
|
Isn't it possible to ssh into a box, the run ftp from there back into your own?
|
|
|
12-28-2003, 02:00 PM
|
#6
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
You can setup a ssh tunnel between to machines and use that to run a (insecure) tcp connection.
|
|
|
12-28-2003, 03:23 PM
|
#7
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
Quote:
Originally posted by phobox
Isn't it possible to ssh into a box, the run ftp from there back into your own?
|
I believe that's exactly what sftp does. It uses an ftp-like program through an encrypted SSH tunnel. That saves you the effort of having to manually setup an SSH tunnel and then turn on the ftp client/server.
|
|
|
12-28-2003, 10:41 PM
|
#8
|
Member
Registered: Oct 2003
Location: India
Distribution: Debian
Posts: 95
Original Poster
Rep:
|
I disgree with u ppl.U can copy using ssh.
U can copy using ssh.The command is
ssh -e none -T user@xxx.xxx.xxx.xxx cat /tmp/somefile_tobe_transferred > /tmp/test
I Tried it in my network.
|
|
|
12-28-2003, 11:07 PM
|
#9
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
Yep, I just transfered an .rtf file that way and it is readable.
|
|
|
All times are GMT -5. The time now is 02:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|