Hot answers tagged

128

From the manual: 3.1.3.7 Full screen mode If you find the title bar on a maximised window to be ugly or distracting, you can select Full Screen mode to maximise PuTTY ‘even more’. When you select this, PuTTY will expand to fill the whole screen and its borders, title bar and scrollbar will disappear. (You can configure the scrollbar not to disappear ...


87

Sure. Use scp (secure copy) like this: scp [source file] [username]@[destination server]:. Of course replace the bracketed [source file], [username] and [destination server] to match your local settings. So if the file was cool_stuff.txt and your username on the remote sever is sanjeev and the destination sever is example.com, the command would be: scp ...


69

It appears that dragging the status line to resize a split is not possible when the Vim option ttymouse is xterm; it does work when the value is xterm2 though. The latter value configures Vim to ask for an extended mouse reporting mode that (among other things) provides better dragging support. This extended mode only works with newer versions of xterm (and ...


62

I use WinSCP to “auto login” in PuTTY with a password. It's free, contains plenty of features, was created in 2000 and is still activity maintained. (WinSCP Wikipedia page) STEP 1: Login to your winSCP. Click Options > Preferences. Then Follow the screenshot below. STEP 2: Follow the screenshot below. NOTE: Opening PuTTY from WinSCP can be done from ...


60

The easier answer to this question is two configuration changes in your Putty preferences for the session(s): In Window -> Behaviour set your desired Window title. In Terminal -> Features check Disable remote-controlled window title changing.


55

In my experience, holding Shift lets you select text in programs that have mouse support (of which htop is one, I assume).


53

To copy: (hold) Shift + Select with mouse (copies to clipboard) To paste in windows: Ctrl+V To paste in another file in PuTTY/MC: Shift + Ins Other hotkeys here. Midnight Commander tutorial here.


38

For me the key was that the "Diffie-Hellman group exchange" key exchange algorithm was not implemented on the server (see Connection > SSH > KEX). Moving this key exchange algorithm to the bottom of the list and making the algorithm "Diffie-Hellman group 14" first solved the problem for me.


37

You can use the very awesome 4bit Terminal Color Scheme Designer to generate a full color scheme for your shell. Just create a color scheme to your liking, then click the Get Scheme button and select putty. After downloading the .reg file, just import it to your registry to get the new color scheme. By default the registry change will only affect new ...


37

I had the same problem with PuTTY and found that is was being caused by an application I have called "caffeine" which effectively presses the F13 key every minute to stop the screen saver from being activated (group policies prevent me from changing screen saver timeout on my machine). Disabling the application solved me problem.


36

Luckily, now I have found the answer. It was trivial as expected, but since it has bothered me on more than one occasion, I decided it deserved a su post. Feel free to disagree with me on that ;) To access PuTTYs right-click menu when in fullscreen mode just: ctrl + right-click ...from there ofcourse you can choose to exit fullscreen :)


36

Use this option on the Window -> Behaviour page and don't forget to save this as Default Settings on the Session page to make it permanent.


35

What the -m does is, that it makes PuTTY instruct the SSH server to start that command(s) INSTEAD of a shell. So once your command finishes, so does the session. If you want to run the shell after the cd command, you need to add it explicitly to your cmd.txt, like: cd /my/path ; /bin/bash Also the -m implies "nopty"/non-interactive mode. To use an ...


34

The CSI 3 J sequence to clear the scrollback buffer was added to PuTTY 0.59. (On the wish request page for this feature see the "fixed-in" line, or go to the PuTTY changes page and search for CSI 3 J.) As jwd mentioned, you can enter printf '\033[3J' on a command line to send this sequence to the PuTTY. Be aware this only clears the scrollback buffer, it ...


33

Try nohup Background_ScriptX & nohup ensures that a process is not terminated when a terminal is closed. The & symbol pushes the process into the background. Hope this was helpful.


29

control+insert = copy shift+insert = paste


28

It's a bit tricky, but you can make the cmd fullscreen: Launch the CMD and write the following code: mode 800 Now you can make it fullscreen by pull the menubar to the top of the screen or resize it, to whatever size you want. If you want, that this is set by default, do the following: Open an editor and write in the code @Echo Off mode 800 Now change ...


25

Solution found for me via the following URL: http://www.held.org.il/blog/2011/05/the-myterious-case-of-broken-ssh-client-connection-reset-by-peer/ It even does a pretty good job of explaining what is going on. Ultimately, I added the following to /etc/ssh/ssh_config: Host * SendEnv LANG LC_* HashKnownHosts yes GSSAPIAuthentication yes ...


25

Yes, the option is equivalent, however, it doesn't forward keys in general – it forwards connections to the "SSH agent" specifically. The "agent" holds your keys in memory, decrypted (so you only need to unlock them once), and the client asks it to sign data for authentication. On Linux/Unix/BSD/Cygwin, OpenSSH's agent program is ssh-agent (though in some ...


25

You can use the reset command by typing in reset then pressing Enter when that occurs to reset the terminal so it'll go to a new line when pressing Enter again. Command ubuntu@db200krctc:~$ ubuntu@db200krctc:~$ ubuntu@db200krctc:~$ ubuntu@db200krctc:~$ ubuntu@db200krctc:~$ reset ubuntu@db200krctc:~$ ubuntu@db200krctc:~$ ubuntu@db200krctc:~$ Further ...


24

There are only four potential problem I can think of (most of which have been covered already): You're not connecting to the right server. If you're using an IP address, check it. If you're using a host name, verify that it's pointing to the right IP address and/or try the IP address instead. You're not entering the right username. The fact that you have ...


24

In Vista and newer versions of Windows, an unprivileged process is not allowed to save to folders where "Users" doesn't have write access (even if you are a local admin and the Administrators group does have access). So when an unprivileged program tries to write a file there it actually gets saved in %localappdata%\VirtualStore.


23

This is a known issue with PuTTY 0.65 and older on Windows 10. See PuTTY bug win10-jumplists. It seem to be a bug in Windows 10 triggered by PuTTY using the @ sign at the beginning of its command-line arguments used in jumplist shortcuts. A workaround for the Windows 10 bug has been implemented and was released with PuTTY 0.66: https://git.tartarus.org/?p=...


22

I had the same issue, as I installed PUTTY by chocolatey. In this case, if you call PUTTY, it will run the shim from the chocolatey\bin folder, and not the real exe. As I put the whole path into the task, PUTTY appeared within the ConEmu window: C:\ProgramData\chocolatey\lib\putty.portable\tools\PUTTY.EXE -load "saved session"


21

If you want to verify which code is sent by PuTTY to your terminal when you press a key or a combination of keys, you just have to issue a Ctrl+V and then press on the desired key. For example on my box, pressing the Home key will generate the following string on my terminal: ^[[1~ That means that PuTTY sends the escape character ^[ followed by the string ...


21

I have put together a step-by-step guide to get Git setup for windows using PuTTY's Plink application for SSH authentication. Follow along below: Setup Install putty.zip which is available at the PuTTY Download Page or you can download individually. PuTTY: putty.exe (or by FTP) The SSH and Telnet client itself. Plink: plink.exe (or by FTP) A command-...


21

WinSCP supports command-line conversion of private keys from the OpenSSH (or ssh.com) format to the PuTTY .ppk format. Use the /keygen switch: winscp.com /keygen mykey.pem /output=mykey.ppk (I'm the author of WinSCP) Or, you can compile/run the Unix command-line puttygen using the Cygwin. Or build your own tool from PuTTY code. It's open-source. It is ...


21

I found an answer here left by D3ftOn3Z. Try this method. Open up your "Control panel". Click on "Folder Options".Under the "View" tab,Check "Show hidden files,folders and drives" and Uncheck "Hide protected operating system files". Click Apply then Ok. Now open up "My Computer". Navigate to C:\ProgramData\Microsoft\Windows\Start Menu. Once ...


20

If you want to read the output at a later date, you can use screen: screen -d -m my_command This gives you a detached terminal you can connect to later (screen -r) to read the stdout/stderr output.


20

First off, there really is no official convention for naming keys. They filenames don't matter. They are only important to you, who has to manage them. The software is only concerned with the content of files. That being said, OpenSSH key files are just text files, so you could name them with a .txt extension. I typically just stick with the convention ...


Only top voted, non community-wiki answers of a minimum length are eligible