Putty how to use - putty ssh, hotkeys. Tips for working effectively with Putty Increasing the number of terminal lines

PuTTYsoftware client remote connection and settings Linux servers, Telnet terminals, network routers. With PuTTY you can connect via network protocols SSH, Telnet, Rlogin to end hosts; configure devices via serial Com port.

PuTTY how to use or connect via PuTTY SSH

Open the PuTTY program and in the “Session” category indicate the host name or IP address of the server, by default we use port 22. We enter the session name and click the “Save” button, this is done so as not to re-enter the IP address each time the next time you connect to the server.

Before saving the connection, you need to click on the “Change” button in the “Windows” - “Appearance” category and select “Cyrillic” from the character set, then check the encoding in “Translation”, which should be set to UTF-8 - these settings will ensure correct display Cyrillic characters. Connection is set!

Note: To successfully connect to a server, terminal or network router, an SSH server must be configured on the terminal equipment side, port 22 must be open and local computer from which you are connecting, disable Windows Firewall/Firewall.

Let’s try to connect to the SLES 12 SP1 x64 server by clicking on the “Open” button, as shown in the first figure. During the initial connection, a warning window will be displayed that the Putty program will write down the remote server encryption key, confirm by clicking the “YES” button.

A terminal window opens, where you need to enter your username and password to log into the system; after each entry, press the “Enter” key. No characters are displayed when entering a password. A successful connection to the SSH server is determined by the last login and the appearance of the hostname.

To control the system you must use Unix commands, Cisco and others. For more convenient control Linux system I recommend using MC - Midnight Commander (file manager with a text interface).

An example of the output of the command ls -ls entered (shows detailed output of the list of files, access rights, owner group, size of each file, date, etc.):

PuTTY hotkeys

The main and most important thing is copy paste To copy text from anywhere to the clipboard you need to press the combination keys Ctrl-C and paste it into the PuTTY window using the Shift-Insert hotkeys or by pressing the right mouse button, thereby inserting the text into the console. If you need to copy/paste text in the PuTTY window itself, then simply select the text in the window and paste in the same way as indicated earlier.

Ctrl+A – go to the beginning of the line

Ctrl+C – end the current command

Ctrl+D – termination of the work session (command “exit”)

Ctrl+L – screen shift, everything that was previously entered will move to the very top

Ctrl+P – output of previously entered commands (pressing Up/Down arrows)

Ctrl+U – delete line

Ctrl+W – delete one word in the current line

Ctrl+Z – stop the current command

Good afternoon, here is a small reminder for yourself describing how to copy paste into PuTTY. The SS H protocol was developed as a secure, encrypted replacement for the RSH protocol. RSH is used for remote access shell to the UNIX (or UNIX-like) system and was once popular among system administrators before network security became the ongoing issue it is now. Now, thanks to SSH, you can gain security using an encrypted protocol known for its versatility and security. While OpenSSH is probably the most used SSH implementation in the world, PuTTY is the most commonly used SSH client for the MS Windows platform.

Key Features of PuTTY

Like OpenSSH, PuTTY is a very versatile tool for remotely accessing another computer. It is probably used more often by people who need secure remote shell access on a UNIX or Linux system than for any other purpose, although this is only one of its many uses. PuTTY is more than just an SSH client. It supports all the following protocols:

  • raw: The raw protocol is typically used for network debugging.
  • rlogin: This is an unencrypted remote login protocol. UNIX system, which uses port 513 by default.
  • serial: The serial option is used to connect to a serial line. The most common purpose for this is to establish a serial connection between computers instead of Ethernet or other network connection.
  • SSH: As noted, SSH is an encrypted secure remote login protocol that uses port 22 by default.
  • Telnet: is an unencrypted remote access protocol. It typically uses port 23 and is available on many systems other than UNIX. Like rlogin, Telnet has declined in popularity due to privacy concerns.
  • In addition to the five protocols supported by PuTTY, it also supports features such as saved session configurations, session logging, locale (language) settings, and proxy sessions.

Importance of SSH on Windows

Of course, there are a number of reasons to use a tool like PuTTY. But the most common targets are related to the SSH protocol. It is a terrible idea to connect to a web host over an unencrypted connection to manage the web hosting and transfer files. Using an unencrypted login is good way make yours account web hosting “owned” by an attacker. Using a secure, encrypted protocol such as SSH for such purposes is much more the best option.

SSH over PuTTY offers a fast and easy way to securely access a UNIX shell environment from Windows systems. This is convenient not only because of the obvious need for some people to work with Windows and UNIX/Linux systems, but also for people who are forced to use Windows and want access to the capabilities of the UNIX shell. As with OpenSSH, PuTTY can be used as a secure web proxy. PuTTY can be used to secure TortoiseSVN connections to the Subversion server.

Blindly enter your password each time to log into the server ( especially if it is “good”, that is, long and not memorable) is extremely tiring. Therefore, the standard saving of a connection session with a server in PuTTY leaves much to be desired. And I really want to log into the server in one, maximum two clicks! This raises the question: “ How to run PuTTY with password?“And what’s strange is that there is an answer to this question. Even two! =)

Safety Warning!

The methods of storing data (login and password) outlined in this article are not secure!

If an unlimited number of people have access to your computer, then it is better to refrain from using them, since the data will be stored in open (unencrypted) form! Data will be transmitted over the network using the protocol selected in PuTTY, so there is only one threat: the data can only be stolen from your computer while you are out for coffee and a croissant. ;)

Primary settings

In order to run PuTTY with a password, you must first save session settings in it. With these settings, further login to the remote server will be carried out.

Option one. Launch PuTTY with a password, running the bat file with user data

To begin with, of course create a bat file. It’s probably worth naming the body file something meaningful and placing it in a place where it will always be at hand when you need to log into the server. After that write it in the following information:

Cd %ProgramFiles%\Putty\ start putty.exe -load SERVER_NAME -l USER_NAME -pw PASSWORD

To make it clear what these two lines mean, let me explain:

  • cd - command to navigate through directories (then is an absolute path, so the batch file will be launched from any place where it is located, even from a flash drive)
  • %ProgramFiles% - constant operating system Windows, which denotes the absolute path to the Program Files folder. There is a space in the name of this folder. That is why this constant is used
  • %ProgramFiles%\Putty\ - absolute path to the directory (standard when installing PuTTY), where the putty.exe program is located. Where it was installed, it lies there. If to another place, this path you need to change it to the one you have on your computer
  • start - Windows team to execute the file. If you do not specify it, two windows will open: one Windows console, the second PuTTY window itself with an open session with the server. Why should we leave open window Windows console?
  • putty.exe is the actual PuTTY program file, which we launch with the following parameters:
    • -load - open the server specified in the SERVER_NAME parameter
    • -l - precedes the username specified in the USER_NAME parameter

You entered everything, entered your data, and saved the changes in the bat file. Now, double-click to launch the batch file and immediately go to the server under the user whose data is saved. Comfortable! =) But not safe (as I wrote above).

Option two. Launch PuTTY with a password, specified in the program shortcut putty.exe

As is clear from the name of this option, the first thing you need to do is create a program shortcut putty.exe. It makes sense to name the shortcut so that you can understand which session data is stored in it, so as not to get confused. Since the paths to the program in the shortcut are indicated in absolute form, then the shortcut can be moved to a place where it will always be at hand and not noticeable to those who want to steal the data stored in it ( server login and password).

After the shortcut is created, open its properties:

In the window that opens, on the “ Label" to the line " An object» add data about our connection to the server in the form:

"C:\Program Files\PuTTY\putty.exe" USER_NAME@SERVER_NAME -pw PASSWORD

  • "C:\Program Files\PuTTY\putty.exe" - the path to the putty.exe program, written in quotes
  • USER_NAME - the username that we previously entered manually each time when logging into the server
  • @ - this is the icon =)
  • SERVER_NAME - the name of the server saved in PuTTY sessions with which we are establishing a connection
  • -pw - precedes the user's password, which is specified in the PASSWORD parameter
  • PASSWORD - user password to log into the remote server

And press the button " OK».

For security purposes, Windows may ask you to confirm changes in the shortcut parameters. Here you just have to agree. =)

That's basically all.

Conclusion

If there is saved data in PuTTY sessions that matches the data saved in the shortcut and/or bat file, then when you run the batch file or double-click on the shortcut, a session will open immediately with the logged in user, which is extremely convenient, but not very safe, because To. all data is stored in clear format.

30 May 2014 | Author: dd |

Of course, it’s interesting when some knowledge is at the subcortex, at the level of instincts - yesterday on the forum they asked how to paste from the clipboard in the puTTY terminal client.

The question even stumped me at first, because... If you are distracted from work, you won’t even remember it. It seems that you can insert it into puTTY by right-clicking the mouse, but you can’t say for sure, because this is already at the level of reflexes. So I had to go check it out and at the same time edit something on the server. Moreover, the person began to cry that he could not find any information on the subjects on Tyrnet. But I know from somewhere that in puTTY all copying and pasting is done through the mouse, and I was not born with this knowledge:

paste into puTTY from the clipboard by right-clicking (as an option Shift+Insert);
copy to puTTY – select the text and left-click.

Only when inserting text, you need to take into account the fact that if you accidentally copied the next line to the clipboard, then the transition will follow the ENTER input and, as a result, the command will be executed.

So yesterday, trying again, I had to constantly kill them from the processes.

Clipboard operations in puTTY, 5.3 out of 10 based on 9 ratings