SSH is going to be available on Windows 10 via PowerShell. I guess no more need for Putty.
This article has instructions how to generate SSH key on the Mac. It also covers Linux and Windows. You can skip step 3 if you’re not working with Github.
Are you looking for ways to secure your Linux server? Try changing the default SSH port, normally at port 22, to something else like port 450, for example. Changing the SSH port does not necessarily make your server that more secure, but it makes it harder for people to guess which port is open for SSH use.
To change the default SSH port. Edit the /etc/ssh/sshd_config file from the Terminal.
sudo nano /etc/ssh/sshd_config
Change from Port 22 to Port 450 for example.
Save file and exit.
sudo /etc/init.d/ssh restart
To SSH to your server, all you have to do is:
ssh email@example.com -p 450
The Nmap utility will scan devices connected to your network. Nmap is a free open-source utility used by network admins and anyone to explore, scan, secure and audit the network. For example, if your internal network is 10.10.10.0/24 network, you can use the following Nmap options to scan your network.
nmap -sP 10.10.10.0/24
The command above produces the following output:
As you can see, the nmap utility has found 8 devices connected to my network. It usually takes 30 seconds or so to scan the entire network. With the available data, I can now ping, ssh, or view the device via web browser if that service is available. Nmap makes troubleshooting the network that much more easier.
Just like most Linux utilities, nmap has a ton of options worth checking. Simply type
-- help to read more options.
If you are a Windows user, the nmap utility is available for download.
For Ubuntu users, simply type the following to install
sudo apt-get install nmap
So you just installed the latest version of Ubuntu on your desktop. You want to access your spanking new Ubuntu machine from another computer. There are two ways in accomplishing this: (1) the fast and easy way via SSH, or (2) the slightly more difficult way via graphics called Remote Desktop.
Let’s say we go with the easy route in this article. We want to access it via SSH. I’ll follow up with another article how to access your Ubuntu desktop using Remote Desktop. So, we want to access your Ubuntu desktop via SSH. What we need is a SSH server. We can easily install OpenSSH Server by just installing the SSH server from the Terminal.
Install SSH Server
sudo apt-get install ssh-server
Your remote computer must have a SSH client to access your Ubuntu desktop. I recommend that you use Putty if you are a Windows users. Putty is a SSH client program to access your Ubuntu desktop. If you are a Mac or a Linux user, you can simply use the Terminal. Access your Ubuntu server by invoking the SSH client.
That’s the IP address of my Ubuntu desktop. You can specify a hostname if you have an internal DNS that’s working. You can also specify the username and the port number if you using a different port from the standard port 22.
ssh 10.10.10.10 -l username -p 2222