Skip to main content
75 votes
Accepted

SSH server gives "userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]" when connecting with PuTTY

A simple solution. Add this line in /etc/ssh/sshd_config. PubkeyAcceptedAlgorithms +ssh-rsa Afterwards, restart the sshd service to make the new settings come into effect. $ sudo systemctl restart ...
Saurav Pathak's user avatar
59 votes

Scroll inside Screen, or Pause Output

All these answers addressed how to navigate within a screen session, but there is a built-in functionality in screen command to store everything in a file through the -L argument according to the ...
Mehrad's user avatar
  • 843
42 votes
Accepted

Is there any limit on line length when pasting to a terminal in Linux?

4095 is the limit of the tty line discipline internal editor length on Linux. From the termios(3) man page: The maximum line length is 4096 chars (including the terminating newline character); lines ...
Stéphane Chazelas's user avatar
30 votes

SSH server gives "userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]" when connecting with PuTTY

There are several types of keys and signature algorithms in the SSH protocol. RSA keys, which have the key type ssh-rsa, can be used to sign with SHA-1 (in which case, the signature type is ssh-rsa), ...
bk2204's user avatar
  • 4,497
18 votes

How can I change the color of this blue text on my command line?

You can specify the color to use in ansible (at least you can with ansible 2.3.1.0). Open ansible.cfg and go to the section that says [colors] You should see something like this [colors] #highlight = ...
TryHarder's user avatar
  • 281
18 votes

How to print strings separated by TAB in bash?

the whitespace between the two is actually 5 spaces. No, it's not. Not in the output of echo or printf. $ echo -e 'foo\tbar' | od -c 0000000 f o o \t b a r \n 0000010 What is the ...
ilkkachu's user avatar
  • 148k
16 votes

Can mouse wheel scrolling work in a Screen session?

Although it is an old question, the method I found best that works for me is using Ctrl + A + ESC key combination. This makes the screen output scrollable. From the documentation page: Virtual ...
xabush's user avatar
  • 293
16 votes

X11 forwarding does not work if su to another user

The below steps should fix the issue for you. Say it's working for user1 and you want to use it for user2 For user1: $ xauth list $DISPLAY <output1> $ echo $DISPLAY <outoput2> Switch to ...
KiKNation's user avatar
  • 161
14 votes

Server refused public-key signature despite accepting key - putty

I also had this problem seemingly out of nowhere, but only with FileZilla and not Putty. (key based auth) For me the solution was simple (when I read the tip here) to just update Putty including ...
Dani's user avatar
  • 141
13 votes
Accepted

Getting PuTTY to work properly with FreeBSD

There are so many knobs to twist and turn. And much advice on the Internet people follow blindly. As always many ways to Rome but when you know how things are connected they are very simple. The ...
Claus Andersen's user avatar
13 votes
Accepted

Switch tabs in Debian installer over serial console with PuTTy

It looks like the Debian installer might use the well-known screen utility to implement multiple tabs on a serial console, so use its key combinations to switch tabs: Ctrl+A, then 1-4 An alternative ...
telcoM's user avatar
  • 114k
11 votes

Can I transfer files using SSH?

you can use Windows PowerShell (actually, it's OpenSSH command, it can be used on any UNIX OS too): scp -P <non-default target ssh port> "<source file>" <username>@<hostname/...
Trofogol's user avatar
  • 111
11 votes
Accepted

Why do num key slash, asterisk, minus, and plus not work in > tmux 2.1?

You can change the settings of PuTTy : Terminal → Keyboard → The Function keys and keypad → Select "Xterm R6". It worked for me ! (Thanks to Thomas Dickey for the informations regarding PuTTy and ...
Adrian B.'s user avatar
  • 536
11 votes

Determine the application client is using to connect

Simple answer: No, there is no sure way. Terminal applications often will report available features when queried with the right escape sequences but this is sometimes not enough to detect which ...
Hans-Martin Mosner's user avatar
10 votes

How to use wildcards (*) when copying with scp?

In order to avoid globbing you want both - single quotes and an escaped asterisk: scp 'SERVERNAME:/DIR/\*' ./ If you want to use wildcards use either single quotes or escape only the asterisk: scp '...
holzkohlengrill's user avatar
9 votes
Accepted

How to print strings separated by TAB in bash?

Like ilkkachu said, this isn't an issue with bash, but with the terminal emulator which converts tabs to spaces on output. Checking different terminals, putty, xterm, and konsole convert tabs to ...
JoL's user avatar
  • 5,019
9 votes
Accepted

sudo authentication when using SSH key auth with Keepass+Putty

If you can use SSH agent forwarding, there actually is a way: pam_ssh_agent_auth.so (source here) is a PAM module that can do what you ask. It's available in Debian and Ubuntu as package libpam-ssh-...
telcoM's user avatar
  • 114k
9 votes

SSH server gives "userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]" when connecting with PuTTY

From the comments, but not enough visible, and before making trade-off with security, better to check if other simple methods works. Before to make any change on server side, try to update putty to ...
Giacomo Catenazzi's user avatar
8 votes

Scroll inside Screen, or Pause Output

If you didn't get it clear checkout https://stackoverflow.com/questions/18489216/how-to-scroll-up-and-down-in-sliced-screen-terminal Try Control+A, then Escape. Then navigate with Up,Down or PgUp ...
Mohamed Allal's user avatar
7 votes

Switch tabs in Debian installer over serial console with PuTTy

In addition to @telcoM answer: For those running the Debian installer through screen itself, like a UART connection to some monitor-less device, you can't use Ctrl+a directly. That would be picked up ...
Forage's user avatar
  • 170
7 votes
Accepted

CTRL-O causing terminal to freeze

Do you have by any chance NZXT Cam software running? The default hotkey to activate it's overlay is Ctrl+O. Remove the assigned hotkey in NZXT Cam Settings > Overlay and you should be good.
WHiTEBOX's user avatar
6 votes

Trying to SSH to local VM Ubuntu with Putty

For Ubuntu 18.04 and VirtualBox 5.2: Create a Host Network Interface i. On Virtualbox, click File/Host Network Manager. ii. If you don't already have a Host Network adapter (default vboxnet0), ...
ooknosi's user avatar
  • 416
6 votes

How to print strings separated by TAB in bash?

In printf '%s\t%s\n' foo bar, printf does output foo<TAB>bar<LF>. f, o, b, a and r are single-width graphical characters. Upon receiving those characters, the terminal will display a ...
Stéphane Chazelas's user avatar
6 votes
Accepted

How to set shell to wrap words for long commands?

This may be because you're using bash (or other shell which uses readline) and in your ~/.inputrc (or global /etc/inputrc) you have set horizontal-scroll-mode On From man readline: horizontal-...
6 votes
Accepted

Leave tmux text in terminal after exiting tmux. Possible?

To @terdon's point in the comments, you can simply "detach" (default Ctrl>+B D) from the session and continue it later if you'd like. If you simply close Putty, then tmux is still ...
NotTheDr01ds's user avatar
  • 4,012
6 votes

SSH server gives "userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]" when connecting with PuTTY

Complementing the answers from @bk2204 (RSA now requiring SHA-2) and Giacomo Catenazzi (upgrading PuTTY to version 0.78), the explanation can be found in PuTTY's changelog for version 0.75: Support ...
João Sena Ribeiro's user avatar
5 votes
Accepted

how to move all files and folders to another folder using mv command

If your files are currently in /backup/folderwithfiles and you want to move folderwithfiles to /live/newfolder then: cd /backup mv folderwithfiles /live/newfolder If newfolder already existed, ...
mikem's user avatar
  • 905
4 votes

How to make SOCAT send each character from STDIO?

OK, I found the solution, and it took quite a bit of trial and error: On the host side (Linux), this is how socat has to be invoked: stty -icanon && socat - /tmp/win-serial-com3,cr On the ...
polemon's user avatar
  • 11.9k
4 votes
Accepted

How to make up arrow key display a multi-line command?

Line editing in the original ksh is quite limited. You may want to use one of its "clones" like zsh¹ or bash instead. For ksh93, I find that if you use the vi editing mode (ksh -o vi) as opposed to ...
Stéphane Chazelas's user avatar
4 votes
Accepted

terminal Ctrl+s versus Ctrl+z

My question is, does Ctrl+s keep the command running? Yes, up to the point where the system buffers fill, and the process starts blocking to be able to write to the terminal. So, it won't run ...
ilkkachu's user avatar
  • 148k

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