![]() ![]() By default, sshpass is not included in any Linux operating system, so you will need to install the sshpass utility in your Linux system to pass the password with the SCP command. It is very useful in a shell script when you want to take backup via cron job. Sshpass is a simple and lightweight command-line tool that allows you to provide passwords to the command prompt itself. How to Install and Use Ack Command in Linux Install sshpass in Linux You will be prompted to provide a remote user’s password as shown below: password: Also Read The basic syntax to copy a file from the remote system to the local system is shown below: scp :/file/path local/pathįor example, to copy a file named file1.txt from the remote system with IP address 192.168.1.100 to the local system inside /opt directory, run the following command: scp :/mnt/file1.txt /opt/ The basic syntax to copy a file from the local system to the remote system is shown below: scp filename :/directory/pathįor example, to copy a file named file1.txt from your local system to the remote system with IP address 192.168.1.100 inside /mnt directory, run the following command: scp file1.txt :/mnt/ ![]() Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page. Create a new server, choosing any Linux operating system with at least 1GB RAM. A root password configured on your serverįirst, log in to your Atlantic.Net Cloud Server. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |