Use a pseudo-terminal over SSH to run a command on a remote machine.
Some very useful SSH tips when using a remote server over a network connection.
Some very useful SSH tips when using a remote server over a network connection.
This example will send the Boomsrc folder and all of the contents to the remote machine under the /home/jason/Desktop directory. This is very fast and secure. ┌──[[email protected]]─[~/Documents] └──╼ ╼ $ tar cBf – Boomsrc | compress -c | ssh [email protected] "cd /home/jason/Desktop; uncompress -c | tar xBvf -"┌──[[email protected]]─[~/Documents] └──╼ ╼ $ tar cBf – Boomsrc … Read more
Listing files on a remote machine is very easy. Rsync is the best way to do this. It can be used to transfer a bunch of files from one machine to another, but it also can be used to list a remote directory. Here is a very useful example. ┌──[[email protected]]─[~] └──╼ ╼ $ rsync –list-only … Read more
How to use rsync to send files from your hard disk to a backup drive. This example will copy the files from a folder to a backup drive and the ipinfo folder will be created on your backup HDD. rsync -av Documents/ipinfo/ /media/jason/Seagate\ Expansion\ Drive/Linux/ipinfo/ sending incremental file list created directory /media/jason/Seagate Expansion Drive/Linux/ipinforsync -av … Read more
The rsync command with the –list-only parameter allows the user to list filenames on a remote machine. But by default, it looks like this. jason@Yog-Sothoth » ~ » $ rsync –list-only [email protected]:/home/jason/Documents/ [email protected]’s password: drwxr-xr-x 4,096 2018/05/09 09:49:49 . -rw-r–r– 867,863 2018/04/19 12:44:56 altis_insurgency_altis.pbo -rw-rw-r– 681,638 2018/05/04 09:03:16 pg768.txt -rwxrwxr-x 166 2018/01/17 09:48:52 rhsafrf.0.4.5.bikey -rwxrwxr-x … Read more
How to use rsync to backup your home directory or whole system and skip directories that are not required to be backed up. This simple rsync command will backup the contents of your home directory to a folder on a removable drive. This command will exclude various system folders if you wish to backup the … Read more
This is an example where I am using the rsync command to copy files from one computer to another. homer@deusexmachina ~ $ rsync -avz -e "ssh -p 443" [email protected]:/home/homer/Desktop/ /home/homer/Videos The authenticity of host ‘[192.168.100.4]:443 ([192.168.100.4]:443)’ can’t be established. ECDSA key fingerprint is ############################################. Are you sure you want to continue connecting (yes/no)? yes Warning: … Read more