Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»FAQ»bash scp: command not found

    bash scp: command not found

    RahulBy RahulJanuary 20, 20151 Min Read

    scp command is used for transferring files between two server over SSH. Most of scp users getting confused scp command is already available on my system but it still showing “bash: scp: command not found”. So remember that scp command must be available on both local and remote systems.

    Install Package for SCP command

    scp command is comes from package openssh-clients on Red Hat systems and package openssh-client is used for Debian based systems. Use following commands to install package for scp command on Linux operating systems.

    On CentOS/RHEL and Fedora

    # yum install openssh-clients
    

    On Ubuntu and Debian

    $ sudo apt-get install openssh-client
    

    Transfer File Using SCP command

    Local to Remote: To transfer file /opt/myfile.txt from local to remote (remote.example.com) system’s /opt/ directory use following command.

    # scp /opt/myfile.txt remote.example.com:/opt/
    

    Remote to Local: To transfer file /opt/myfile.txt from remote (remote.example.com) system to local systems /opt directory use following command.

    # scp remote.example.com:/opt/myfile.txt /opt/
    
    OpenSSH openssh client scp SSH
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Find PostgreSQL Database Size
    Next Article How to Backup and Restore PostgreSQL Database (5 Tips)

    Related Posts

    How to Create SFTP User in Ubuntu 22.04 (No Shell Access)

    Updated:June 14, 20224 Mins Read

    (Resolved) userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

    Updated:May 10, 20221 Min Read

    Adding a New SSH Key in GitHub

    Updated:April 1, 20223 Mins Read

    How to Search Recently Modified Files in Linux

    2 Mins Read

    Bash Printf Command

    Updated:December 23, 20212 Mins Read

    Tee Command in Linux with Examples

    4 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.