Questions tagged [openssh]

OpenSSH (OpenBSD Secure Shell) is a set of computer programs providing encrypted communication sessions over a computer network using the SSH protocol.

OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.

524 questions
16
votes
2 answers

How do I re-issue OpenSSL snakeoil cert?

In light of the recent heartbleed fiasco and whatnot I too have been scrambling to up security on some servers. My question is how do I reissue the Snakeoil cert that comes with Openssl? The cert that it is currently using was issued in 2012, so…
10
votes
5 answers

How to enable SSH on boot in Ubuntu MATE

I have installed Ubuntu Mate 16.04.2 LTS on my Pi2 and installed OpenSSH but when the Pi starts/restarts SSH does not automatically turn on. I've tried sudo systemct1 enable ssh but all I get is "Command not found" I am connecting via wifi from my…
Finger78
  • 109
  • 1
  • 1
  • 4
5
votes
1 answer

Disable login prompt through SSH when no key is present

I've set OpenSSH server with private/public keys, with password login disabled. I was wondering if there was a way to not even show the 'login:' prompt when someone without a key tries to connect. EDIT Okay ... There seems to be some confusion as to…
Just Lucky Really
  • 723
  • 2
  • 10
  • 21
4
votes
4 answers

ssh key authentication still prompts password

I got ssh key authentication working on my production server quite swiftly. However, I have been struggling to get it to work on my development server. First, I generated the keys (I use Ubuntu on both home and server): $ ssh-keygen -t rsa -f…
JohnMerlino
  • 7,309
3
votes
4 answers

Update OpenSSH Server in 12.04?

I'm having hard time updating openssh-server in ubuntu 12.04, I stupidly downloaded .deb file for 14.04 and of course it didn't work :/ I've tried sudo apt-get -f install, it just removed my openssh Here's the output installing openssh…
Potato Science
  • 149
  • 1
  • 1
  • 6
2
votes
2 answers

OpenSSH intermittent error ( ssh_exchange_identification: Connection closed by remote host ) on a public IP

I faced a very strange issue on one of my public SSH server. It was failing intermittently with the error below: ssh_exchange_identification: Connection closed by remote host We all know that it's a generic one. Let me show you both client and…
vivekyad4v
  • 524
  • 1
  • 6
  • 12
2
votes
1 answer

Force ssh user to different shell through config

Is it possible in the openssh-server config, to force a subset of users to use a different shell than the one defined for them in /etc/passwd? Say that i, for example, want to confine all users logging on from outside a certain IP range to…
2
votes
1 answer

Installing openssh-server on a virtual machine

I am unable to install openssh-server on an Ubuntu 13.10 virtual machine. Here is the command I used and it's output: sudo apt-get install openssh-server [sudo] password for mohamed: Reading package lists... Done Building dependency tree …
2
votes
2 answers

multiple ssh keys on home computer

I would like to be able to use ssh key to log into my web server via ssh and disable password authentication completely (to eliminate brute force from malicious ip addresses). So I am reading the…
JohnMerlino
  • 7,309
2
votes
0 answers

SFTP with Chrooted directory project

First thank you very much for all your post. I am completely new to Ubuntu and the Unix world and have found almost all the answers I needed except how to properly setup and sftp server with chrooted directories. What I would like to do is create…
SPeedY
  • 41
1
vote
1 answer

query incompatible SSHD versions

I have a small home network. One desktop runs 12.04, the other and my laptop run 16.04. I can connect to the 12.04 machine using SSH from both 16.04 machines, and also from an Android tablet (using VxConnectBot). However authentication fails when…
Brian
  • 11
  • 2
1
vote
2 answers

Whoy doesn't openssh-server work in ubuntu14.04

Here is all what I can show. [skynet]~> apt-get install openssh-server Reading package lists... Done Building dependency tree Reading state information... Done openssh-server is already the newest version. 0 upgraded, 0 newly installed, 0 to…
Edik Mkoyan
  • 349
  • 1
  • 3
  • 11
1
vote
1 answer

Can not install openssh server

sudo apt-get install openssh-server I got this error: Err mirror://mirrors.ubuntu.com/mirrors.txt/ precise-updates/main openssh-server i386 1:5.9p1-5ubuntu1.4 No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror:…
user284234
1
vote
1 answer

ssh-server autocreate key directive

In centos there is a the directive AUTOCREATE_SERVER_KEYS=YES you can put in the /etc/sysconfig/sshd file to tell sshd to re-create its ssh server keys if the keys are missing. Is there any such way in Ubuntu server 20.04?
1
vote
0 answers

Why do I see different versions when I run `ssh -V` compared with `sshd -V`

To update OpenSSH in Ubuntu 18 LTS to version 8, I followed these steps: https://unix.stackexchange.com/a/598842/392505 I now see the desired version when I run ssh -V OpenSSH_8.0p1, OpenSSL 1.1.1 11 Sep 2018 But if I run sshd -V I see the old…
1
2