Useful tips for the bash shell.
How to show the count of running jobs on a Linux machine with a custom bash prompt.
How to show the count of running jobs on a Linux machine with a custom bash prompt.
How to install Hydra from source on Linux and scan an SSH server.
How to use SSH in Windows Terminal and view Bitcoin prices instantly.
How to use SSH escape sequences to get information about an SSH connection on Linux.
A few very useful networking apps for Android.
Some very useful SSH tips when using a remote server over a network connection.
How to load a window manager session in a window over SSH. This is yet another way to administer the system graphically over a network tunnel.
A very useful SSH client for Windows machines to connect to a remote Linux machine and administer it easily. It even has an RDP function. Very good indeed.
How to use SFTP to connect to a remote Linux machine and then transfer files easily. This is a great way to send and receive files over a Linux network.
How to mount a directory and access the files as your normal Linux user easily, this is a very useful networking tip when using a Linux server on a LAN.
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
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
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
How to set up an SSH connection to a remote server, this is very useful for administering a remote machine 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
The Secure Shell, or SSH, provides a way of running command line and graphical applications, and transferring files, over an encrypted connection. SSH uses up to 2,048-bit encryption with a variety of cryptographic schemes to make sure that if a cracker intercepts your connection, all they can see is useless gibberish. It is both a … Read more
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
It is possible to detect an established SSH connection from your machine to a remote server. The lsof command can view an SSH connection. I am using SSH over port 443, so the connection is mixed up with a lot of other stuff that Firefox is connected to. But if I use grep and filter … Read more
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
Users that try and fail to log in to your system leave a record in the system logs. This is how to find out what time this was and which user they attempted to log in as. The /var/log/auth.log file is the one that contains the login records. All successful and failed logins are recorded … Read more