Scp ��� mac os

Question: Q: How to use SCP (Secure Copy Protocol) in Terminal

Would someone help me do a scp command using Terminal? The client is telling me to use the following command:

pscp –v -2 –C –P 8080 –username –pw pswd FILE address

Posted on Sep 13, 2005 7:12 PM

All replies

Loading page content

Page content loaded

I actually used that command for the first time a few minutes ago, to send a file to a colleague — he told me what to type:
scp path-to-file user@machine:directory/

It asked Are you sure you want to continue connecting?, then asked for the password.

Sep 14, 2005 6:09 AM

Applications>Utilities>Terminal.app
(ugly black screen, blocky cursor waiting for your command. this is Terminal mode. The line that ends with yourname and a $, is called the prompt)

A good place to pause and reflect, might be to open Help, once you open Terminal, before you start using it.

At at the prompt, type your command, follwed by the Enter, or Return key
You need to know:
your username
your password
and the «path/to/the/file» (like /Users/dan/documents/fakefile.doc)

This app can be the geekiest, and the most useful tool that OSX provides, though some may argue with me on «most helpful».

Sep 14, 2005 7:37 AM

‘pscp’ is actually a Windows client for implementing scp (because Windows doesn’t ship with SSH installed by default).

The command and arguments you’ve been told to use will not work on anything other than a Windows machine with pscp installed.

That’s not to say you can’t use scp — you can, you just can’t use the command in the way they’re telling you to.

In general scp requires two things — a source and a destination. Either source or destination can be on a local or a remote system. If ‘source’ is remote and ‘destination’ is local, then you’re download something from the server to your machine, and if ‘source’ is local and ‘destination’ is remote you’re uploading to the server.

The basic format is:

scp source destination

where either source or destination is a local or a remote path.
If local this is simply the path to the file on your system. If you’re already in the directory you can just type the filename, otherwise you’ll need to include the path to the file.
If remote then the format is hostname:/path/to/file where ‘hostname’ is the DNS hostname or IP address of the server. If you need to log into the server using a different username you can use the form username@hostname:/path/to/file

So, assuming you want to upload the file /path/to/file to the /var/tmp/ directory on server ‘homer’, you would use:

scp /path/to/file homer:/var/tmp/

You’ll be prompted for your password on homer, then the file will be uploaded.

To download a file simply reverse the parameters:

This will download the file /var/tmp/file from homer and save it in your home directory.

Now, the big gotcha here is the additional switches you’ve been told to use with pscp. The ‘-P 8080’ tells me they’re running on a non-standard port number (8080) rather than the normal port 22. If that’s the case you may need to tell scp to use a non-standard port, too which coincidentally uses the -P switch.
The rest of the pscp switches are mostly irrelevant. -v adds verbose messages (so you can see the progress). -2 uses SSH v2 which is the default under Mac OS X. We covered -P 8080, and there’s no way we’ll add the password on the command line (bad, bad, bad idea).

Читайте также:  Windows 10 crack games

So, the equivalent scp command to what you’ve been told to do with pscp is:

scp -P 8080 FILE username@address

If you substitute the appropriate parameters you should be all set.

Источник

Configuring SCP for macOS/OS X

This topic describes how to configure and use secure encrypted data transfer with macOS (previously OS X) via Secure Copy Protocol (SCP). File transfer is often needed for data exchange when integrating external systems with Optimizely Campaign .

Configuration steps

Step 1: Creating a key pair

  1. From the Utilities folder, open Terminal.

Enter ssh-keygen and press Enter.

Enter a file path and file name for the key pair. For example, to save the key pair to your desktop in a file called key, enter /Users/ /Desktop/key . Press Enter to confirm.

By default, Terminal suggests the hidden .ssh folder in your user folder as the file location, and the id_rsa as the file name. Unless changed, the key pair is saved in that directory using that file name. The private key is given the id_rsa file name, while the public key is assigned the .pub extension. In this example, the public key name is id_rsa.pub.

To see the name of your user folder, click Go>User folder in the MacOS Finder menu. Finder opens a window with the user folder name at the top.

In the Enter passphrase dialog box, enter your password (not visible).

Remember your password, you need it later to establish a server connection.

Step 2: Configuring a user account for SCP access

  1. Email your public key (file with .pub extension) to Optimizely customer support.
  2. In a separate email, send your key fingerprint to Optimizely customer support.

For security reasons, do not send the public key and key fingerprint together.

Step 3: Downloading and installing Cyberduck

Cyberduck is a free program used for establishing a connection to the server.

  1. Using a browser, go to https://cyberduck.io.
  2. Click Download Cyberduck for Mac.
  3. When the download finishes, open the folder with Cyberduck. No specific installation is required.
  4. Optional: move Cyberduck to a permanent folder, such as Programs or Utility programs.

Step 4: Establishing an SCP server connection

  1. Open Cyberduck.
  2. To create a bookmark for connecting to the server, click the plus icon + at the bottom.

Click the top options menu and select SFTP (SSH File Transfer Protocol).

Fill out the information as follows.

  • Nickame: Enter a name to the bookmark.
  • Server: Enter the address ftpapi.campaign.episerver.net .
  • Username: Enter name as provided by Optimizely .
  • Open More options and enable Use Public Key Authentication.
  • Go to your private key folder and select the private key.

    Do not confuse the private key with the public key. For the Use Public Key Authentication option, use your private key.

    To establish a server connection, double-click the saved bookmark.

  • When prompted for a password, enter the one from Step 1: Creating a key pair.
  • Источник

    Аналоги WinSCP для Mac OS

    WinSCP — это популярный бесплатный SFTP и FTP-клиент для Windows. Более того, WinSCP — это мощный многофункциональный инструмент, который повысит вашу производительность.

    WinSCP может копировать файлы между локальным и удаленным компьютером, используя несколько протоколов: FTP, FTPS, SCP, SFTP или WebDAV. С одной стороны, WinSCP предлагает простой в использовании графический интерфейс пользователя (вы можете выбирать между внешним видом Windows Explorer и интерфейсом с двумя вкладками, как Norton Commander), а с другой стороны, опытные пользователи могут автоматизировать функциональность WinSCP, используя сборку .NET или простые сценарии пакетных файлов.

    Читайте также:  Windows 10 pro tas ix

    Вы можете использовать WinSCP для всех общих операций с файлами: вы можете начать редактирование файла непосредственно из WinSCP, используя внутренний текстовый редактор WinSCP или интеграцию с вашим любимым внешним текстовым редактором. Кроме того, WinSCP предлагает несколько способов синхронизации удаленных и локальных каталогов.

    После подключения к сайту вы можете выбрать сохранение информации сайта для повторного доступа, WinSCP может даже поделиться настройками сайта с другим популярным инструментом с открытым исходным кодом PuTTY. WinSCP также интегрируется с Pageant (агент аутентификации PuTTY) для полной поддержки аутентификации с открытым ключом по SSH.

    Администраторы любят поддержку WinSCP для переносимых операций с использованием файла конфигурации вместо записей реестра, подходящих для работы со съемными носителями.

    Полная документация WinSCP находится в свободном доступе по адресу http://winscp.net. На этом сайте также находится пользовательский форум для поддержки и запросов о новых функциях.

    WinSCP доступен на английском и других языках.

    WinSCP — это программное обеспечение с открытым исходным кодом, распространяемое бесплатно в соответствии с условиями Стандартной общественной лицензией GNU.

    Источник

    What to choose: SCP client for Mac or alternative?

    Users who have recently switched to cloud hosting often have problems managing virtual server files, as many of them are not used to working with the command line. Fortunately, Commander One provides a user-friendly graphical interface with which you can upload new and move existing server files. Stop wondering whether to search for SCP client Mac solution or start using Commander One now.

    What to choose: SCP client for Mac or alternative?

    Users who have recently switched to cloud hosting often have problems managing virtual server files, as many of them are not used to working with the command line. Fortunately, Commander One provides a user-friendly graphical interface with which you can upload new and move existing server files. Stop wondering whether to search for SCP client Mac solution or start using Commander One now.

    What is an SCP protocol?

    SCP (Secure Copy Protocol) is an application layer network protocol (and a similar utility) designed to transfer data between two network nodes (local and remote or a couple of remote ones). It works on top of the SSH protocol, using its mechanisms for authentication and data protection in transit that is why the SCP port number is also 22.

    SCP is based on the RCP (Secure Copy) protocol/utility, which was part of the Berkeley r-commands (1982) software package, which has long been used on Unix OS and has become the de-facto standard for remote control on Unix. R-commands did not provide the required level of security (in particular, the data was not encrypted in transit) and were replaced by SSH shortly after its introduction.

    How does SCP work? What is SCP command syntax?

    This command is a special utility that can only work over the SSH (Secure Shell) protocol. The main requirement for transferring information from one PC to another is to run a special SSH server. The user must have a login and password from the server since without this information it will be impossible to launch it.

    The command makes it possible to move documents of various sizes. This can be done not only between a local and a remote system but also between 2 remote servers. To carry out the event, you will need to know logins and passwords.

    SCP command syntax

    SCP [OPTIONS] [WHAT TO COPY] [WHERE TO COPY]

    The SCP utility is highly functional. It is capable of accepting a large number of parameters as input, and also allows you to copy individual files and directories. They are specified in the «what to copy» section.

    When performing the procedure, be sure to indicate where you want to transfer files and folders. The information is entered in the «where to copy» section.

    Читайте также:  Jira windows или linux

    The above two arguments can take different paths, both local and remote. It is possible to copy information from a remote personal computer to a stationary one, as well as to carry out the procedure exactly the opposite.

    The «what to copy» and «where to copy» arguments have their own specific syntax:

    (USER NAME) — (IP) — (PATH TO REQUIRED FILE OR DIRECTORY)

    In this case, «username» is the login that is used when starting a special SSH server. The IP address of a personal computer or host. It is to or from them that files and directories will be copied.

    SCP security: is it safe or not?

    SCP provides a secure method for transferring files between hosts. In simple terms, SCP can be seen as an integration of RCP (Remote Copy Command in UNIX) and SSH. SCP encryption and authentication are provided using the SSH protocol, while BSD (Berkeley Software Distribution, sometimes called Berkeley Unix) RCP provides the basis for the actual file transfer. SCP operates on port 22. SCP prevents third parties from intercepting file transfers and viewing the contents of data packets.

    When a client uploads a file to the server, it is given the option to enable properties such as timestamp, permissions, and so on. This capability is not provided in the widely used FTP (File Transfer Protocol) protocol. When a client needs to download a file/directory, it first sends a request to the server. Uploading is a server-driven process where files are transferred from the server to the client. This server-driven mechanism can pose a security risk, especially if the server is malicious.

    What is the difference between FTP, SFTP, and SCP protocols?

    There are not many differences between FTP and SFTP. The key difference is that SFTP uses a secure channel to transfer files while FTP doesn’t. That’s why FTP is the most insecure of all file transfer options, so you should never connect to a remote server using FTP. SCP and SFTP are just as easy to use but offer a much higher level of security. In addition, FTP requires the installation of an FTP server (such as vsFTP or ProFTP), while SFTP and SCP use SSH protocol and, as a result, when connected to a remote Unix-like server, they work automatically.

    Both SFTP and SCP protocols provide a secure file transfer mechanism, there are some differences between them. SCP is a simple protocol that only allows files to be transferred, while SFTP provides a wide variety of operations for managing remote files.

    In addition, when comparing an SFTP client to an SCP client Mac users agree that the SFTP client has additional capabilities such as deleting files remotely, resuming interrupted transfers, etc. Moreover, SFTP is more platform-independent than SCP. SFTP servers are available on several platforms, while SCP mainly uses Unix platforms.

    When comparing speeds, SFTP is slower than SCP protocol as it requires waiting for encryption and acknowledgment of packets. SFTP provides support for files larger than 4GB, unfortunately, SCP transfers files of small size. does not. SFTP provides the ability to cancel a file transfer without ending the session, whereas with SCP, the session must be canceled to cancel the transfer. In addition, transfer resumption is supported using SFTP, while SCP does not.

    Secure Copy Protocol and File Transfer Protocol offer simple command-line methods for transferring files between computers, but the similarities end there. SCP is better designed for one-time transmission between two computers on the same network, although it can also be used remotely over the Internet. Conversely, FTP is used not only to transfer data to a remote server but also to manage that data.

    Источник

    Оцените статью