Skip to main content

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.

187 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
2 answers
5k views

What's the easiest way to install OpenSSH 7.4 on Ubuntu 16.04?

On Ubuntu 16.04 (Xenial) box, what is the easiest way to install OpenSSH (openssh-client) that is higher than 7.2? I am aware that I could compile from source, but I was wondering if there's a way to ...
Tri Nguyen's user avatar
6 votes
3 answers
27k views

RSA keys not authenticating

Just trying to get a basic setup of openSSH going on an Ubuntu box to work remotely. Main issue: RSA keys fail auth. ssh DOES work using the password for auth, but I would much rather limit it to only ...
Troy Liebel's user avatar
5 votes
0 answers
741 views

Ubuntu 16.04 slow ssh character feedback

I am seeing veeeeeerry slow feedback on remote ssh terminals to a new install of Ubuntu 16.04. E.g., after typing a character it may take 20-30 seconds before it is displayed in the terminal. ...
Robert's user avatar
  • 51
4 votes
1 answer
3k views

OpenSSH server: Other version running than installed

I have an Ubuntu 18.04 server. I installed openssh-server and openssh-client. According to apt, the installed version of both packages is 7.6p1-4ubuntu0.1, but the running version of the ssh-server (...
FelixSFD's user avatar
  • 173
3 votes
0 answers
3k views

Cannot SSH locally from Mac to Ubuntu 16.04 Server (running as Hyper-v guest on Server 2012R2)

I've looked just about everywhere for a solution but I have yet to find one. Here's my problem: I try and connect to my Ubuntu Server via SSH from my Macbook Pro within my LAN with: ssh nextcloud@192....
snowboardit's user avatar
3 votes
0 answers
3k views

SSH Connection to Ubuntu Server fails with Connection closed <ip> [preauth]

Newly installed Ubuntu Server 16.04, have done the update and upgrades. Running sudo service ssh status says it is up and running. I marked OpenSSH-server during the installation. But I cannot ...
swe_mattias's user avatar
3 votes
1 answer
3k views

ssh connections to Ubuntu are intermittent

I'm trying to use ssh to connect from a Mac to Ubuntu 12.04. I get "Connection reset by peer." Try again and I get "port 22: Connection refused." Keep trying and I get password prompt. Enter password ...
Kenneth Garges's user avatar
3 votes
0 answers
10k views

Can't change ssh port (Trusty 14.04)

I've been trying to change my ssh port without success and none of the suggestions I've found did the trick for me. I'm on Trusty 14.04 at Rackspace (upgraded from Precise). This is the sequence of ...
Marc's user avatar
  • 131
2 votes
0 answers
508 views

OpenSSH isn't working on Ubuntu server minimal install

This isn't my first time experiencing this issue but every time on every distro I have ever used when installing OpenSSH it just doesn't work. Commands Run sudo apt-get install openssh-server sudo ...
Michael's user avatar
  • 51
2 votes
0 answers
4k views

How to upgrade ssh version from 8.2 to 8.6 in ubuntu machine

I have tried to install ssh version 8.6 with ref link https://blog.jonkimi.com/2020/04/17/Upgrade-openssh-server-on-Ubuntu/. After installation when I run command "ssh -V" it shows latest ...
Hinal Patel's user avatar
2 votes
0 answers
154 views

SSH not pointing to latest openssl [Ubuntu 16.04.6 LTS -Xenial Xerus]

I have updated the openssl but still the ssh is not pointing to this version of openssl. How I can make ssl and openvpn to point to this version of openssl? I tried to google but didnot find ...
A_01's user avatar
  • 121
2 votes
1 answer
3k views

SSH timeout on nearly-fresh Ubuntu 18.04 installation

Yesterday i made a new installation of Ubuntu 18.04. Problem I'm trying to connect to my Digital Ocean vps like always with the ssh user@ip command but it gets stuck. Things i tried Tried to show ...
BufferOverflow's user avatar
2 votes
0 answers
1k views

Is there way to reset password if you can only login via ssh keys?

I don't know why but somehow my password no longer works. For example, I cannot do "su myself". I can still login via ssh keys. In such case, is there way to reset password?
user276851's user avatar
2 votes
0 answers
2k views

Running SSH through system suspension

I would like to have my system suspend automatically when I'm not using it. However, I would still like to be able to remote into my machine any time I need. I keep OpenSSH-server and my Desktop ...
Eliter's user avatar
  • 69
2 votes
0 answers
2k views

sshd: segfault at 8 ip error 4 in libc-2.19.so on ubuntu 14.04

I'm using Ubuntu 14.04 and yesterday I was setup the reinstall openssh-server and setup goeip which allow/deny ssh access country wise. In /var/log/message , Continuously getting below error: $ tail ...
Nullpointer's user avatar
  • 1,171
2 votes
0 answers
508 views

Log in to ssh slow for one user, but not another

I'm running a server at home with Ubuntu 14.04. I have two users on the machine, say user1 and user2, each able to ssh into the box. While user1 logs in very quickly, user2 takes about 20 seconds to ...
wckronholm's user avatar
2 votes
1 answer
568 views

Unable to Install Openssh-Server on Ubuntu Server

I am trying to install OpenSSH-Server and receiving following error, Unpacking openssh-server (from .../openssh-server_1%3a5.9p1-5ubuntu1.7_amd64.deb) ... /var/lib/dpkg/tmp.ci/preinst: 17: exec: /usr/...
ajay_m's user avatar
  • 21
2 votes
0 answers
564 views

openssh version 6.9+ upstart problems

I'm on trusty (14.04.2 LTS). current version of openssh=6.6 (OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3, OpenSSL 1.0.1f 6 Jan 2014) Was told to upgrade to openssh=6.9 or greater. Why does the ssh daemon now ...
Jack's user avatar
  • 21
2 votes
0 answers
2k views

Can't ssh into my home PC remotely

I have a computer at home running on 14.04. I would like to be able to send jobs to that computer (I will call it server) from my laptop (running on 15.04) and share files between the two. I am able ...
William's user avatar
  • 103
2 votes
0 answers
272 views

OpenSSH chroot breaks ssh and ftp

I'm trying to set up a webserver with a restricted sftp connection. I've googled and followed several walkthoughs that all appear to be pretty much the same thing. Here are my steps: Fresh install ...
sureshot007's user avatar
2 votes
2 answers
7k views

OpenSSH - Restrict users to one or multiple folders

I want to know how I can restrict user access using OpenSSH Server. Let's say I want user 1 to only access /Media, /Documents, and his home folder, User 2 should only access /Folder21, and his ...
FrankB's user avatar
  • 21
2 votes
0 answers
699 views

sshd_config file is being overwritten on reboot

I need an AWS server to accept password authentication and whenever I remove the hash and set PasswordAuthentication yes After reboot or create image and launch a new instance, the # is added back ...
user306518's user avatar
2 votes
0 answers
268 views

Ubuntu server 14.04 quotations marks display wrong

When ever the character ' is displayed in my terminal it displays as â. I have never had this with the previous versions of Ubuntu. For example: rm: cannot remove â/etc/init.d/novncâ: No such file ...
Zen_silence's user avatar
2 votes
0 answers
3k views

How to deal with "Errors were found while checking the disk drive for /" in a server?

It seems a little stupid for a operating system this behavior in a SERVER operating system. The problem is very simple to replicate on Ubuntu Server: just change the date back in time and then reboot ...
Wagner Patriota's user avatar
2 votes
1 answer
1k views

Unable to connect to my remote Ubuntu system using SSH

I want to connect to my remote PC running on Ubuntu 12.10 using SSH. But when I try ssh my_username@my_current_ip, I get this error: ssh: connect to host 117...** port 22: Connection timed out I ...
Akshay Krishnan R's user avatar
2 votes
0 answers
208 views

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 ...
SPeedY's user avatar
  • 41
1 vote
0 answers
184 views

Bug with pasting root password to connect via SSH from Ubuntu 20.04 to Alma Linux 9 remote server

Summarize the problem Im running into a strange bug, by pasting the root password into the prompt while connecting via SSH from a Ubuntu 20.04. client to a AlmaLinux 9.2. remote server. Client: Ubuntu ...
blamefreezer's user avatar
1 vote
1 answer
800 views

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 ...
Systemgeek's user avatar
1 vote
0 answers
116 views

How to connect EC2 instance to Netbeans remote server?

I am trying to connect my AWS ec2 ubuntu instance to the Netbeans. While I am trying to connect with Netbeans Remote server then, It is showing the following error message. I have searched all the ...
Pushpendra's user avatar
1 vote
0 answers
2k views

Linking Zlib with source compilation

I have compiled Libz using these steps: wget -c --no-check-certificate https://zlib.net/zlib-1.2.12.tar.gz ./configure --prefix=/home/zlib1/ make make install Similarly I have compiled OpenSSL and ...
Manukumar Puttaswamy's user avatar
1 vote
0 answers
4k views

upgrade OpenSSH 8.2p1 => 8.5p1

I am trying to upgrade OpenSSH version to 8.5p1 on Ubuntu 20.04 LTS. When running these commands I get the following ssh -V OpenSSH_8.5p1, OpenSSL 1.1.1f 31 Mar 2020 dpkg -s openssh-client | grep '^...
58Dev's user avatar
  • 11
1 vote
0 answers
378 views

I ge a "port 22: Connection refused" error on ssh?

I have ipv6 address, and I tried like ssh user@ipv6. I am getting a port 22: Connection refused error while connecting to a server. I have both the openssh client and server installed, and they are ...
J C's user avatar
  • 143
1 vote
1 answer
1k views

How can I install openssh-server without openssh-client on Ubuntu Server 20.04

I'm trying to install openssh-server on a Ubuntu server 20.04. When I try to install it with the following command: sudo apt-get install openssh-server the process wants to install openssh-client, ...
vlmercado's user avatar
  • 111
1 vote
0 answers
879 views

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 ...
arnoldbird's user avatar
1 vote
0 answers
48 views

SSH failed while connect to PC without monotor

I am trying to use my PC as online server. Everything works perfect when the monitor, keyboard and mouse is connected. I can remote ssh to my PC after boot even without login to Ubuntu with my user/...
萬庭旭's user avatar
1 vote
0 answers
2k views

Can we install OpenSSH 8.4 on ubuntu 16.04 or does it cause compatibility issues? CVE-2020-14145 CVE-2020-15778

We received OpenSSH Information Disclosure Vulnerability CVE-2020-14145 CVE-2020-15778 on some of our ubuntu 16.04 and ubuntu 18.04 Servers and the fix recommended is to upgrade to OpenSSH 8.4/8.4P1 ...
anup reddy's user avatar
1 vote
0 answers
4k views

Generate RSA key in Ubuntu 20.04

Whenever I create a public/private keypair using ssh-keygen in Ubuntu 20.04, I get an OpenSSH private key file instead. Even if I manually specify that I want to use rsa using the following command: ...
Matthew Knill's user avatar
1 vote
0 answers
857 views

Isn't a status of active (exited) an oxymoron?

How is one supposed to interpret a status of "active (exited)" on a service such as SSH or SSHD? (This is the results of the command: sudo systemctl status sshd How can it be active if it exited? ...
NealWalters's user avatar
1 vote
0 answers
134 views

Ubuntu - Moduli file upgrade story

SSH uses /etc/ssh/moduli file for DH exchange key alogithm. Only root has write permissions to modify the /etc/ssh/moduli file. Assume that we modify the /etc/ssh/moduli file for some reason (Ex - ...
ABCDEFG's user avatar
  • 11
1 vote
1 answer
945 views

SSH - Permission denied (publickey) with Password Authentication

I'm not able to log into my remote machine and get the Permission denied (publickey). even through I manually specify the options to use password authentication ssh -o PubkeyAuthentication=no -o ...
user14492's user avatar
  • 111
1 vote
0 answers
294 views

SSH connection get stucked at login after a few days of server uptime

when i try to connect to server via XShell it hangs with following message: Connecting to 192.168.1.10:22... Connection established. Other ssh clients just hang forever. A reboot solves the ...
SHM's user avatar
  • 111
1 vote
0 answers
393 views

connect mac to ubuntu by ssh

for ssh connection ssh -i id_rsa id@ip_address in ip_address if I connect to my ubuntu from outside(not local ip) which ip_address should I put ?? i put my router ip address and sssh connection ...
jake Monk's user avatar
1 vote
0 answers
963 views

GSSAPI Authentication Error: "An invalid name was supplied" (FQDN, FREEIPA)

When trying to connect to a FreeIPA client via SSH using GSSAPI it produces the error: An invalid name was supplied. The name/key used is: "Host/mail@" which shows something has gone wrong server-side,...
TheAnonymousBear's user avatar
1 vote
0 answers
2k views

How to uninstall built in OpenSSH (7.2)?

I would like to ask for your assistance. I have compiled OpenSSH 7.9: sshd -V shows: OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019 BUT still the built-in one is in service, and I don't know how to get ...
Bobyonekenobi86's user avatar
1 vote
1 answer
3k views

Docker Ubuntu Openssh server - I figured out how to make it not exit, but I don't understand what is going on

I made a Dockerfile with installs for ssh-server, and was initially having problems with it exiting immediately after the command to start the service. I found a workaround, but I don't understand ...
JakeJ's user avatar
  • 121
1 vote
0 answers
48 views

Ubuntu client cannot connect to ubuntu server since update but windows client can

I'm the administrator of 3 small ubuntu servers used in our scientific group and I have ubuntu 18.04 on my personal laptop. For the past two weeks I've been unable to access the servers remotely (I'm ...
Samenkov's user avatar
1 vote
0 answers
93 views

How can I have internet access through ssh

I have a HP Pavillion 15 with Ubuntu 18.04, openssh-server installed and running and I also have an Aspire S3 with Ubuntu 18.04 openssh-client installed. I can access the HP through ssh on my Acer ...
mrBell's user avatar
  • 11
1 vote
1 answer
314 views

Can't login to a remote server after uploading ssh key to the remote server

I tried installing ssh-key on a remote server. However I can't login into the remote server without using password My effort is described in this... How can I solve the problem?
saichand's user avatar
  • 131
1 vote
3 answers
1k views

Unmet dependencies error in ssh

Tried upgrading Ubuntu 11.10 to 14.04. So far everything looks alright, lampp, ftp, web, openvpn server etc are all running ok but openssh server is not starting. Tried manually start it (/usr/sbin/...
Denistone's user avatar
1 vote
0 answers
81 views

How to use 2FA with cert based SSH auth?

I used this guide to enable Google TOTP auth on Ubuntu 16.04. SSH only allows cert based auth (PasswordAuthentication no) I set ChallengeResponseAuthentication yes and restarted the SSH service. I ...
Gaia's user avatar
  • 921