How to install and start SSH on Kali Linux 2019

Installing and setting up SSH on Kali Linux 2019 is very easy. This enables an SSH connection from Bitvise SSH Client into a VMWare instance of Kali Linux. Firstly, install the SSH service. root@kali:~# apt install sshroot@kali:~# apt install ssh Then, once it is installed, start the SSH service on your Kali instance. root@kali:~# systemctl … Read more

How to use sftp to retrieve files from a remote Linux server securely.

The sftp utility for Linux allows copying files from a remote Linux machine, or sending them to one, this makes working with a machine over SSH very easy. Firstly, connect to the machine like this. deusexmachina:~ jason$ sftp [email protected] [email protected]’s password: Connected to 192.168.1.4.deusexmachina:~ jason$ sftp [email protected] [email protected]’s password: Connected to 192.168.1.4. Then issue the … Read more

How to ssh into a Linux machine easily from your Ubuntu PC.

SSH is a great way to connect to a remote Linux server over a network. This is how to use SSH easily yourself. Firstly, install SSH on the remote machine to allow remote connections if it is a server you are setting up. sudo apt install sshsudo apt install ssh Then run this command on … Read more

Very useful Ubuntu tips and tricks.

How to change your Ubuntu password as a normal user. jason@Yog-Sothoth:~$ passwd Changing password for jason. (current) UNIX password: Enter new UNIX password:jason@Yog-Sothoth:~$ passwd Changing password for jason. (current) UNIX password: Enter new UNIX password: Just enter you current password and then enter a new one twice. It is that simple. To install required updates, … Read more

Connect to a Ubiquity wireless Nanostation easily.

This is how I get the IP information from a Ubiquity wireless Nanostation. XM.v5.5.3# ifconfig br0 br0 Link encap:Ethernet HWaddr DC:9F:DB:42:59:2B inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::de9f:dbff:fe42:592b/64 Scope:Link UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1 RX packets:921 errors:0 dropped:0 overruns:0 frame:0 TX packets:501 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:158229 (154.5 KiB) TX … Read more

How to show a banner explaining terms of use for an SSH connection before login.

It is very simple to show a banner to your users, that explains the terms of use for an SSH connection upon the user reaching a login prompt. Firstly, create a file named info in the /etc/ssh directory. sudo touch /etc/ssh/infosudo touch /etc/ssh/info Then put this in it. *************************************************************************** NOTICE TO USERS     This … Read more

How to have a nice text banner associated with your Linux user account.

Your Linux user account details may be seen with the finger command, i.e finger jason. But the user can add more information to this as well. Create a file in your home directory named .plan and put this into it. ***************************************************************************^M NOTICE TO USERS     This computer system is the private property of its … Read more

How to get a graphical window of xterm or rxvt to open over an SSH connection.

To open an xterm window over the network from another computer, use this command. This will open an SSH connection to another machine. Once the password is given, it will open a rxvt window which will appear on your machine and enable you to issue commands. jason@Yog-Sothoth:~$ ssh -YC [email protected] rxvt The authenticity of host … Read more

Crack an SSH password with hydra and ways to avoid this in future.

I used this command to crack a Linux SSH account with hydra. hydra -l trump -P rockyou.txt ssh://192.168.1.2hydra -l trump -P rockyou.txt ssh://192.168.1.2 And this is the output I got once I managed to crack the user account over SSH. This is why you have fail2ban and other protections against brute force attacks. ┌─[✗]─[root@parrot]─[~/hs] └──╼ … Read more

How to setup an SSH login using host keys instead of a password.

To setup an SSH login on your Linux machine that does not require a password and uses SSH host keys instead, follow this simple guide. Firstly, generate a set of keys for your SSH login. ubuntu ~/Documents $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/ubuntu/.ssh/id_rsa): /home/ubuntu/Documents/id_rsa Enter … Read more

Useful Android apps for connecting to a Linux server.

Useful Android SSH and terminal apps Juice SSH. This is a useful app for Android that allows connecting to Linux machines with SSH. Termux. This is a terminal emulator app for Android that is a fully featured Linux shell. Very good for practicing Linux shell commands on Android. There is even a limited array of … Read more

Copy a file from one UNIX/Linux machine to another using the sftp utility.

Copying a file with sftp from one UNIX machine to another is very easy. The command below uses the SSH protocol and initiates a connection to the remote PC. ubuntu ~ $ sftp -P 443 [email protected] ~ $ sftp -P 443 [email protected] Press ENTER and type your password. The user will be presented with a … Read more

Linux command line in Mr Robot. Showing some accurate Linux usage.

Linux command line in Mr Robot. This directory listing is showing a few files under the /opt/2/task/2/fd1info directory. The fsociety file is the one he was looking for. This file is only 4096 bytes in size, so does not contain too much juicy information. Or does it? The screenshot below, shows a computer store in … Read more

Some useful tips for using Amazon Web Services for running a Linux server.

Amazon Web Services is a very powerful way to run a virtualized server in the cloud, but there are some tips that will help you greatly when deploying a server for the first time. SSH access is one. Changing the SSH port from 22 to 443 in the /etc/ssh/sshd_config file will help access when you … Read more

How to use scp to download files from a remote machine over a secure encrypted connection.

This is the sample command I am using to download my OpenVPN keys from a remote VPN server to allow me to setup a local connection. And to backup the keys safely. [1]homer@deusexmachina ~ $ scp -i Goku.pem -P 443 [email protected]:/home/ubuntu/easy-rsa/keys/*.* /home/homer/vpn/ 01.pem 100% 5589 5.5KB/s 00:00 ca.crt 100% 1736 1.7KB/s 00:00 ca.key 100% 1704 … Read more

Amazon web services. The perfect alternative to a locally hosted server solution.

Amazon Web Services is the perfect solution for hosting a server outside your organization. This allows you to create a cloud hosted database server that takes the strain off your local server infrastructure using Microsoft SQL server 2012 or a Linux based solution in a cloud hosted server instance. There is a free trial that … Read more