LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   difference between SSH and SCP? (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-ssh-and-scp-745023/)

usmansamad 08-04-2009 08:47 AM

difference between SSH and SCP?
 
Hello Everyone,

I need to know the exact difference between SCP and SSH can somebody explain please as i am confused as both seem to do the same thing if so let me know what the difference is.

Thanks in Advance

sycamorex 08-04-2009 08:52 AM

According to wikipedia, scp is a means of transfering files USING ssh

vishesh 08-04-2009 08:55 AM

ssh is protocol that can be used be mutiple secure type of connectivity. scp is one of them, scp use ssh.

onebuck 08-04-2009 11:20 AM

Hi,

You could 'man scp' and 'man ssh' to get the full definition.

Quote:

excerpt from 'man scp';

scp -- secure copy (remote file copy program)

SYNOPSIS
scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2

DESCRIPTION
scp copies files between hosts on a network. It uses ssh(1) for data
transfer, and uses the same authentication and provides the same security
as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if
they are needed for authentication.
...
Quote:

excerpt from 'man ssh';

ssh -- OpenSSH SSH client (remote login program)

SYNOPSIS
ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D
[bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R
[bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [user@]hostname [command]

DESCRIPTION
ssh (SSH client) is a program for logging into a remote machine and for
executing commands on a remote machine. It is intended to replace rlogin
and rsh, and provide secure encrypted communications between two
untrusted hosts over an insecure network. X11 connections and arbitrary
TCP ports can also be forwarded over the secure channel.

ssh connects and logs into the specified hostname (with optional user
name). The user must prove his/her identity to the remote machine using
one of several methods depending on the protocol version used (see below).
...


usmansamad 08-05-2009 03:14 AM

ok got it
Thnx 2 u all of you guys


All times are GMT -5. The time now is 06:20 PM.