Linux - SecurityThis 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.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.