PuTTY SSH - How to configure PuTTY for Windows (4:50)
Videos can also be accessed from our Full Stack Playlist 1 on YouTube.
Welcome. Today's question: How do you configure PuTTY for SSH access to Linux from Windows?
I'm Paul, and if you are like me, you are excited to connect your computers, but you're always a little nervous about security.
In this tutorial, we'll use PuTTY to connect a Windows client to a local server running Linux using the Secure Shell Protocol, or SSH.
First, I will show you what a successful connection looks like.
Then we'll shift the focus to PuTTY configuration and security.
And after the computers are connected, the next set of tutorials will cover Linux commands for beginners, on our journey to Data Science.
Let's get started with the successful connection. Here I've opened a window using PuTTY on my computer. We're pointing to the IP address of the local server, and if the SSH server program is running, on that end, we should be granted access. The term for a program running in the background is called a daemon.
All set, here we go. While we are here, let's clear the screen, and use
ps command to see that SSH daemon
running and waiting for SSH connections, as detailed in tutorial #8.
/sbin/ifconfig, like this, to find
something we'll need for later, the IP address of the server
whatis shows a summary of commands.
In the PuTTY window, let's right-click on the header frame, and then New Session... for a new session configuration page. (See video for a walk through showing the PuTTY window).
This is convenient because if you accept the defaults, and fill in the IP address of the Linux server (from earlier), and Port number, accepting other defaults, you'd likely make the connection just fine.
However, it's worth a little time to adjust settings and save a session for future use, as I've done here.
By default, logging is turned off. (PuTTY sections are in bold.)
In the Terminal section you will find communication between the server and PuTTY, Keyboard shortcuts. Options for sound (Bell) and some advanced Features. I accepted the defaults for now.
Where I would make changes is in the section called Window, which is where you can adjust width and height in terms of characters and the length of the scrollback window.
In Appearance you set the type of cursor, font and size, mouse and borders. Then the Behaviour of windows with specific keystrokes, Translation for character sets, Selection for advanced drag-and-drop features, and finally settings for Colours.
Next, and it will help to think of it this way, the Connection section aligns with the connection type, meaning PuTTY can make five types and SSH is just one of them.
So they line up, Telnet to Telnet, Rlogin to Rlogin and what we are here for is SSH. So when clicking the (SSH) branch, we can see a spot to enter a command on a server, change protocol settings and sharing.
What about security? I've taken the simpleist path here just to get the connection to Linux, but as you can see, there are a lot of details that can be selected on Encryption, Authentication, X11 for using a GUI through this connection, and Tunnels for networking.
So let's assume we've modified this to our liking, gave it a new name and hit save. Let's try it out, and there is no reason we can't open a second window to be twice as productive, right?
Now you can see what the default screen looks like, and the one I've modified is larger with a different font, window size too. (Below is a second window).
And if you're concerned with safety, as we should all be, because any discussion of security opens a can of worms, especially if you have an Internet-facing server, we'll have other security related tutorials later, including one on tunneling.
Here we have finished our first Project, Server and OS Setup, and next up are tutorials on Linux commands for beginners as we're progressing up the stack.
So return for what interests you.
Have a nice day.
That completes our first Project. On YouTube Projects organized as Playlists. Subscribe here and join us at our YouTube Channel.