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.

Filter by
Sorted by
Tagged with
2 votes
3 answers
11k views

ssh working so slow

Whenever I start my local ssh login I have to wait for seconds to write a complete command. Even "ls" is taking so much time. I am using it wireless with two of my linux laptops and connecting to my ...
2 votes
3 answers
12k views

Setup sftp user account and restric read/write access to one folder

I would like to create sftp user account on Ubuntu server which has read/write access only to one specific folder. I would like this user to have rights to transfer files up and from my server via ...
0 votes
0 answers
203 views

How can you access net applications on wsl 2

I need to send a file from one WSL to another for a task I'm given. I tried to use scp command, but it requires me to get a wifi0 IP address for the network both devices are connected to, which I don'...
3 votes
2 answers
2k views

messed up sshd_config, so removed openssh-server, installed openssh-server, Not replacing deleted config file /etc/ssh/sshd_config

I messed up sshd_config and did not make a copy. So I removed openssh-server, then installed openssh-server. The installation complained with message. Not replacing deleted config file /etc/ssh/...
0 votes
0 answers
76 views

password policy(not allowed special characters) between 18.04 and 20.04

I have two vm's, one with 18.04 and other with 20.04 on two different machines. I used to configure password for the VM from machine. SHA512 is used for generating hash key for password. And generated ...
0 votes
0 answers
969 views

ssh and sshfs connection via NordVPN meshnet not working

I have set up an OpenSSH server on my home PC (Ubuntu 22.04 LTS) and am trying to connect to it using ssh and sshfs from my Laptop (Ubuntu 20.04 LTS). The server seems to be running smoothly and I can ...
0 votes
0 answers
14 views

cannot install openssh-server [duplicate]

I'm having trouble installing OpenSSH server on Ubuntu-22.04.2 (not 22.04.1). ERROR: $ sudo apt install openssh-server Reading package lists... Done Building dependency tree... Done Reading state ...
2 votes
1 answer
5k views

Unable to update to Openssh 8.4

We received OpenSSH Information Disclosure Vulnerability CVE-2020-14145 CVE-2020-15778 on some ubuntu 18.04 Servers and the fix recommended is to upgrade to OpenSSH 8.4/8.4P1 But the current version ...
6 votes
1 answer
43k views

ssh: connect to host 10.0.2.15 port 22: Connection refused

I have been trying the following command on the virtual machine in Ubuntu: ssh [email protected] But I keep in getting this response : ssh: connect to host 10.0.2.15 port 22: Connection refused I ...
164 votes
3 answers
245k views

Does ssh key need to be named id_rsa?

I have come across this problem a couple of times when creating build servers with keyed authentication. I was wondering if anyone else has experience this. I have a couple of keys for my current ...
0 votes
2 answers
697 views

SSH into server running xinetd throws error "kex_exchange_identification: read: Connection reset by peer"

I have two servers running ubuntu 22.04.2 LTS with openssh-server 1:8.9p1-3ubuntu0.1 installed. And on both servers I have installed the same admin user. I want to test the legacy superdaemon xinetd ...
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?
20 votes
2 answers
27k views

How do I setup SSH key based authentication for GitHub by using ~/.ssh/config file?

I am trying to set up my SSH keys for GitHub and created a new SSH key for the same. I have managed to setup the SSH key but I wish to retain these settings and save them in the configuration file ~/....
0 votes
1 answer
155 views

Access to remote server via SSH via pem key requests 2 set of password (key and user)

On a remote server, I would like to access via ssh only with a pem key, which is password protected, but I'm being asked for the user account password as well I created the account which I want to use ...
0 votes
0 answers
94 views

Why I am not able to connect Ubuntu server with SSH key?

I have Ubuntu server 22.4 and I it had SSH server installed. Time to time SSH connection was doping even while I was working. I update the SSH by using command sudo apt-get update ssh. After the ...
0 votes
1 answer
3k views

accessing remote server by ssh ( but ssh port is filtered)

I have a few remote ubuntu servers which I don't have a physical access to them. I want to ssh , all of them are saying that the state is filtered on port 22. I have just their Ip address, by using ...
0 votes
0 answers
4k views

Can’t change SSH port

I can’t change the port from 22 for openssh. I’m using /etc/ssh/sshd_config. The line hasn’t been commented out. I’ve restarted the service. But no matter what I do when I check with service ssh ...
4 votes
1 answer
8k views

there are stopped jobs, cannot logout

Im on a remote PC, where "there are stopped jobs, cannot logout". But im leaving, and my connection will break. I tried killing the job, but it still says this. $ exit logout There are stopped jobs. ...
0 votes
1 answer
880 views

issue sshd_config / systemctl restart

one of my workstation (previously it was a 22.04.1 server edition but according to NUC compatibility list last BIOS and dbx EUFI Database uggrade force me to downgrade to workstation as Server edition ...
2 votes
1 answer
1k views

Can't connect SSH on static IP address

I have a default Ubuntu Server 22.04 installation (haven't done anything on it yet). SSH is working fine with default configuration on server's dynamic local IP. I then set up a new netplan ...
0 votes
1 answer
3k views

SSH service fails to start

I just created a virtual machine based on cloud images (of Lunar Lobster) on VMWare. Unfortunately it fails to start ssh. If I try to enable or restart the service I get: And if I check journal it is ...
2 votes
1 answer
10k views

Failed to start OpenBSD Secure Shell server

I wanted to use ssh in order to connect with localhost but it was impossible. When I wrote ssh [email protected] -p 22 it display ssh: connect to host 127.0.0.1 port 22: Connection refused I ...
300 votes
7 answers
441k views

ssh: automatically accept keys

I've written this small utility script: for h in $SERVER_LIST; do ssh $h "uptime"; done When a new server is added to $SERVER_LIST, the script is stopped with: The authenticity of host 'blah.blah....
0 votes
4 answers
8k views

Issues installing smbclient and openssh-server on 18.04.2

Complete Linux newb trying to get Ubuntu going so that I can learn. I'm getting the following errors when I try to install the SMB client and Open SSh server on a fresh install of 18.04.2. Can ...
0 votes
1 answer
487 views

SSH with "Do not execute a remote command" hangs

I have Ubuntu 22.04 installed on a remote server. I can ssh to the server without any issues. I often need to open a vnc tunnel with the following command: ssh -L 5901:127.0.0.1:5901 -C -N -l username ...
0 votes
1 answer
178 views

Unstable SSH connection on old hardware and clean OS

I have a Ubuntu Server 18.04.6 LTS on an Intel Core Quad Q6600 and old Gigabyte 965P-S3 motherboard. Right now SSH is unstable. Client loses connection after 10 minutes of inactivity, but there is no ...
0 votes
0 answers
38 views

How to SSH in Ubuntu on a VM to Ubuntu on another VM

I'm new to Linux. I​ have Ubuntu installed on Virtualbox on my Desktop, and I want to connect to it from Ubuntu installed on Virtualbox on my laptop. How can I​ do that? which user name and IP will I ...
0 votes
0 answers
127 views

SSH Connectivity Issue

Why does the ssh client stop connecting to servers either right after reboot or few minutes after reboot? The screenshot I found this in both ubuntu 20 as well as ubuntu 22. My server is working fine ...
13 votes
1 answer
18k views

What is the difference between PGP and RSA protocols?

PGP and RSA protocols are the two widely used protocols in a number of servers and email applications for security with public/private key pair. What is the difference between them? What other popular ...
0 votes
2 answers
6k views

How can'i pass this " openssh-client' has no installation candidate "

I am trying to use ssh command, but I have this: sudo ssh git-codecommit.us-east-1.amazonaws.com [sudo] password for dali: sudo: ssh: command not found So when i am trying to install openssh-...
1 vote
1 answer
3k views

Automatically keep current sshd_config file when upgrading openssh-server

When upgrading openssh-server, the installation pops up a dialog menu asking the user what they want to do with the sshd_config file. I need to keep the current sshd_config file because it conforms ...
0 votes
0 answers
78 views

How to enforce 2FA while already enforcing public key authentication?

I have been using google 2FA for a while and it works solid. How can I enforce 2AF for some users in addition to ssh key based login? All websites I visited explain how to set it up, but the result is ...
0 votes
0 answers
95 views

Limit TTY via SSH to local Network

I'm setting up a JumpHost for my local network, and would like to not allow TTY from outside, but would also like to have it enabled for connections from inside the network. Is that possible, and if ...
0 votes
0 answers
924 views

Trying to ssh into IPv6 address, getting "no route to host"

I have a home computer that uses Ubuntu 22.04, that I'd likely to remotely SSH into, from the internet. I'm trying to do this through its public IPv6 address. The address doesn't begin with fe80::, so ...
1 vote
1 answer
18k views

*Error Permission denied (publickey)* Does Windows 10 Powershell Support OpenSSH Public Keys with Ubuntu 20.04

Yes I know this a Ubuntu forum.. First off all thanks for doing what you do and helping people! Alright so I've been trying to setup SSH keys on my Ubuntu 20.04, read stuff about it online. So I ...
26 votes
4 answers
276k views

Where is the .ssh directory?

I installed openssh, but I can't find the .ssh directory. Could anyone be able to tell me where could I find this directory? P.S. I installed Ubuntu 16.10 as a virtual machine.
0 votes
0 answers
47 views

problem ssh to my ansible-controller

am having problem with connecting with my ubuntu using Mobaxterm. when putting my password it brings out this reply: [email protected]'s password: Access denied
0 votes
0 answers
446 views

openSSH - ECDSA key fingerprint

Once in a while I get this question when I want to ssh to my linux. ECDSA key fingerprint is SHA256:................................... Are you sure you want to continue connecting (yes/no/[...
0 votes
1 answer
1k views

Trying to install openssh-client openssh-server on WSL but going through snap error

sudo apt-get install openssh-client openssh-server Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are ...
1 vote
1 answer
631 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 ...
0 votes
0 answers
28 views

ssh using password and key [duplicate]

Ubuntu 22.04 with OpenSSH I was ssh to require key and password. I want keys for the usual reason. I also want password in case my laptop is lost or stolen. I don't mind the extra step to type the ...
6 votes
4 answers
18k views

How do I build openssh from source?

I try to install OpenSSH ./configure checking for openssl/opensslv.h... no configure: error: *** OpenSSL headers missing any idea?
0 votes
1 answer
276 views

Ubuntu ssh-ing Ubuntu on home network [duplicate]

I have a laptop (Ubuntu, wifi) and PC (Ubuntu, Ethernet) connected to my home router. I'd like to be able to ssh from laptop to PC to copy and run executables. I don't need a gui, just running htop ...
0 votes
0 answers
1k views

ssh: connect to host xx.xxx.xxx.xx port 22: Connection timed out

I am using ubuntu in my old pc and laptop. Whenever I connect to my note book from pc by using ssh and sftp it works. pc to notebook >> no problem Now I am trying to make my pc like a remote ...
0 votes
0 answers
682 views

SSH connection not working

I created an EC2 instance (ubuntu 20.04), after successfully creating this instance I SSH into it and ran some commands which were basically to install some open source tools as sudo user, but once I ...
0 votes
0 answers
1k views

"Wrong password" error on ssh server remotely

I am running an SSH server on my local machine and I am able to perfectly login and modify files if I use something like [email protected] and type my password. However, when I try to login from ...
1 vote
0 answers
131 views

After upgrade to Ubuntu 22.04, getting ssh Permission denied (publickey) error [duplicate]

Immediately following my upgrade to Ubuntu 22.04 from 21.10, I can no longer connect to Google Cloud Platform via ssh and am receiving the following error (e.g. after running git clone): [email protected]@...
143 votes
14 answers
1.3m views

How to solve 'Connection refused' errors in SSH connection?

I have an Ubuntu Server 10.10 32-bit in my home. I'm making SSH connections to it from my PC via Putty. The problem is, sometimes I'm able to login seamlessly. However, sometimes it gives me an error ...
0 votes
0 answers
937 views

How to start manually-installed OpenSSH, and run at boot

I've manually built an older version of OpenSSH with make + make install, for educational purposes. Is it possible to start it with sudo systemctl restart ssh, as when we install OpenSSH from apt-get? ...
2 votes
1 answer
3k views

Install OpenSSH with older OpenSSL version

For educational purposes, on Ubuntu Server 18.04 I've downloaded OpenSSH_7.6p1 4-Ubuntu0.1 which should be exposed to SSH enumeration. When I run ./configure, it says there's a problem with the ...

1
2
3 4 5
11