How to use SSH to copy remote files from a server to your local machine.

This simple one-liner will copy all files into a tarball, send the compressed files over a secure SSH connection and then uncompress the files into a local directory. ┌──(john㉿DESKTOP-PF01IEE)-[~/website] └─$ ssh [email protected] -p 2222 "cd arma3/ ; tar cBf – ." | tar xvBf – [email protected]’s password: ./ ./README ./example_urllist.txt ./example_config.xml ./sitemap_gen.pl┌──(john㉿DESKTOP-PF01IEE)-[~/website] └─$ ssh [email protected]Read more

How to use X11 Forwarding with SSH on Linux.

Using X11 Forwarding with SSH on Linux allows a remote user to log into a Linux server and then load X11 applications over a network. This is very useful to load graphical apps. Here is an example. The -X parameter to the ssh utility is used to enable X11 Forwarding on the client. ┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Videos] … Read more

How to leave a command running when your SSH session is disconnected. Use the nohup command.

Use the nohup command to leave a command running if you are disconnected from the shell If you want to leave a command running if you are disconnected from your SSH session, then use the nohup command, this can be very handy. This is a good example, this will run the Nmap scan and then … Read more

Good ways to send a folder from your machine to another over a network.

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

Easily change files on your Linux system with a simple command.

This command will change the default port for the SSH server on your Linux machine. jason@jason-desktop:~$ perl -pi -e ‘s/^#?Port 22$/Port 443/’ /etc/ssh/sshd_configjason@jason-desktop:~$ perl -pi -e ‘s/^#?Port 22$/Port 443/’ /etc/ssh/sshd_config Then run this command to restart the SSH server. jason@jason-desktop:~$ sudo service ssh restartjason@jason-desktop:~$ sudo service ssh restart This will work very well. This is … Read more

How to start the SSH server in Venom Linux.

To start the SSH server on a Venom Linux machine, use this command. bash-5.0# /usr/sbin/sshdbash-5.0# /usr/sbin/sshd This will start up the SSH server and then you may connect over SSH to your machine. Edit the /etc/ssh/sshd_config file and make these changes to allow the SSH server to run and allow logins. Allowing root login is … Read more