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
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 ...
chess's user avatar
  • 21
0 votes
2 answers
722 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 ...
Thomas Grusz's user avatar
0 votes
0 answers
97 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 ...
LoverBoy3694's user avatar
0 votes
1 answer
163 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 ...
FeDos's user avatar
  • 166
0 votes
1 answer
922 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 ...
Fred L.'s user avatar
  • 19
0 votes
0 answers
5k 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 ...
Brandon OFTO's user avatar
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 ...
Greenfly77's user avatar
0 votes
1 answer
508 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 ...
Mac Technicon's user avatar
0 votes
0 answers
128 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 ...
saikat sadhukha's user avatar
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 ...
Mina Habashi's user avatar
0 votes
0 answers
81 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 ...
diagpope's user avatar
0 votes
0 answers
105 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 ...
isi_ko's user avatar
  • 179
0 votes
0 answers
969 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 ...
Train Heartnet's user avatar
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
benoosky's user avatar
0 votes
0 answers
462 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/[...
Thomas Aichinger's user avatar
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 ...
Ankit Chawrai's user avatar
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 ...
Obex's user avatar
  • 1
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 ...
Codeholic's user avatar
0 votes
0 answers
712 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 ...
Siddharth Jain's user avatar
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 ...
Miguel Rodriguez's user avatar
0 votes
0 answers
967 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? ...
testermaster's user avatar
0 votes
1 answer
2k views

CLI needs sudo to be able to SSH

I have a strange error. I just installed Ubuntu 22.04 and copied over my SSH keys from the old installation (Ubuntu 20.04). Now suddenly I need sudo to be able to SSH to any machine - as long as it's ...
Daniel Hansson's user avatar
0 votes
0 answers
11 views

How to get latest sudoers and sshd_config after Ubuntu update? [duplicate]

Just updated to Ubuntu 22.04 LTS. During the update it warned me that I modified the sudoers and the sshd_config files (which I did). For the sudoers file, no merge option was provided and for the ...
Dunrar's user avatar
  • 1
0 votes
1 answer
210 views

PuTTY connection error after NetworkManager changes

I am using Ubuntu server 20.04. I switched network settings, changed Netplan to NetworkManager. This is required for L2TP/IPsec vpn connection using NetworkManager. Further, after setting a static ip ...
epx's user avatar
  • 31
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 ...
nnmmss's user avatar
  • 101
0 votes
0 answers
1k views

Allow different users to connect to a ssh server (openSSH)

I'm new at this: I'm trying to set up a ssh server on my personal computer with openSSH. So far, I was able to connect to my server through my computer and also from a different computer in the same ...
John Baptist's user avatar
0 votes
0 answers
132 views

How do I get/review each record in my known hosts

I recently have had "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED", I started digging to double check whats happening. I wanted to review all entries which I have as I just think it might ...
user1325696's user avatar
0 votes
1 answer
1k views

Connecting to sever through ssh

I tried to connect to my sever through the ssh using ubuntu but it does not work. sudo apt-get install openssh-server openssh-client [sudo] password for user: Reading package lists... Done Building ...
Newbie's user avatar
  • 1
0 votes
0 answers
349 views

How to prevent ssh client to access/view a specific folder

Using the SSH opened port, it was possible to verify the folders and the files present, under the directory /usr/share/SecretFolder They are exposed without authentication. My question it's possible ...
ospiti's user avatar
  • 63
0 votes
1 answer
368 views

Why am I not getting prompt for passphrase on other computer in ssh? Only getting password prompt without passphrase

root@Harshit:~# ssh root@my-ip root@my-ip's password:
Wealtharshitiest's user avatar
0 votes
0 answers
2k views

ssh - private key file requires \n at the end of file or cause "Load key id_rsa invalid format"

Question Has OpenSSH introduced a change that requires \n at the end of the private key file (id_rsa)? Previously I was on Ubuntu 18.04 and I believe id_rsa without \n at the end of the file was ...
mon's user avatar
  • 309
0 votes
1 answer
340 views

ssh with identity_file failed on ubuntu 20.04

First I generate RSA key on the target host on ubuntu 20.04: ssh-keygen -t rsa Then I scp ~/.ssh/id_rsa to source host. Final I wanna to ssh from source host by id_rsa: ssh -i id_rsa root@target_host ...
wuliang142857's user avatar
0 votes
1 answer
2k views

ssh still reporting old version after upgrading openssh-client and openssh-server

Security Metrics are complaining our version of ssh is out of date. If I run ssh -V I get this: OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020 But if I run dpkg -s openssh-client | grep ...
TC0072's user avatar
  • 101
0 votes
0 answers
544 views

Ubuntu ssh client how to specify non-standard port for connecting to ssh server on 2nd ubuntu machine

I am new to SSH. Two ubuntu machines on home network. Ubuntu 20.04 server on one, Ubuntu 16.04 on 2nd machine used as SSH client. Client succefsully logs into server with standard port 22, that is, ...
Henry Hall's user avatar
0 votes
1 answer
904 views

cannot log into SSH server

Ubuntu server 20.04 installed and configured to listen to port 2222. From a windows10 machine on the same network I can ssh into the server without difficulty using: ssh -p 2222 [email protected]....
Henry Hall's user avatar
0 votes
2 answers
4k views

Cannot connect with SSH to my Ubuntu Server that is behind a router

I installed Ubuntu Server 20.04 on my old laptop. When it boots Ubuntu Server starts fine and I can login on it. I installed OpenSSH on it and it is active, running. I allowed port 22 on the ufw and ...
DeepPurple's user avatar
0 votes
0 answers
95 views

Access and copy files from Windows server with openssh to my Ubuntu machine

For development I use a Ubuntu machine. I need to retrieve a file which is located on a Windows machine. There is openssh installed on the Windows server. I can log into the Windows server and then I ...
Jürgen Gmach's user avatar
0 votes
1 answer
905 views

Ubuntu desktop ssh unreachable after a while

Hi I installed a new Ubuntu Desktop machine wich i am running a server from. Now i ran into the issue that after a while (12-16 hours sometimes, after i didn't use it for a bit.) that when I try to ...
kick's user avatar
  • 11
0 votes
0 answers
565 views

ssh - connection closed without any further information

I'm currently having trouble with SSH configuration. It was working since about half a year and since this morning, it doesn't seems to work anymore. I've tried a lot of things such as allow from all, ...
Amael's user avatar
  • 1
0 votes
0 answers
35 views

Network 3 Ubuntu machines for local data (not internet access)

I have anywhere from 3 to five machines all running ubuntu or ubuntustudio in my home office. They all have a good wifi connection but I need to access files from time to time (apart from wifi) such ...
Goldphnx's user avatar
0 votes
1 answer
483 views

Connection refused, port 2222, mac to ubuntu (remote)

I can't login from my mac to my ubuntu machine. I tried many things, but nothing works. I am using ubuntu 20.04 Here is what I tried: installed openssh-client openssh-server changed port from 22 to ...
Stefan Berger's user avatar
0 votes
1 answer
360 views

Clusterssh with publickey [closed]

how to login vps with sshpublickey with clusterssh ? if i using 2 vps with password command clusterssh username@ip username@ip so how to using publickey ? i use ubuntu 16.04 thank you
Joe Cola's user avatar
  • 343
0 votes
0 answers
543 views

How set ChrootDirectory on ssh_config in Ubuntu 20.04

how can I set the chroot directory for a specific user in ssh_config? I'm trying: Match User zeus ChrootDirectory /home/test Forwardx11 no But I get a syntax error for the "...
Nicolás's user avatar
0 votes
0 answers
5k views

ssh_exchange_identification — read: Connection reset by peer

I was playing the "Overthewire Bandit" war game and when I try to login to level 20 I am getting the error ssh_exchange_identification: read: Connection reset by peer How can I resolve this ...
Varun Hegde's user avatar
0 votes
0 answers
695 views

Building OpenSSH 8.2p1 on Ubuntu 18.04.4 LTS, what flags should I configure it with?

I need a newer version of OpenSSH on my home machine for remote work. What flags should I pass to ./configure to maintain the same level of configuration as my current OpenSSH (7.6p1), the one ...
Nobilis's user avatar
  • 211
0 votes
1 answer
5k views

OPEN SSH not listening on Port 22

I installed Ubuntu 20.4 (and included Open SSH) as virtual machine on Virtual Box on a Windows 10 laptop. I installed Samba to allow for machine name connection. Below shows the listeners on Port 22,...
NealWalters's user avatar
0 votes
0 answers
463 views

Some unnamed processes eat 100% CPU

My vps is running Ubuntu 16.04. Recently, I have found a lot of failed ssh connections in /var/log/auth.log. I have enabled fail2ban and disabled password authentication. Now, there are some unnamed ...
kietheros's user avatar
  • 101
0 votes
0 answers
71 views

Cant connect to SSH server (Ubuntu) from home wifi

My SSH server set up at my workspace usually from a mobile SSH application with cellural data i can reach ssh anywhere,but when i'm home and i want to do my thing it just wont connecting. The server ...
Larry Petshow's user avatar
0 votes
1 answer
6k views

SSH / SFTP Permission denied (publickey)

I've added the following to my sshd_config Match Group sftponly ChrootDirectory /srv/sftpfolder ForceCommand internal-sftp #AllowTcpForwarding no PermitTunnel no X11Forwarding no I created "user&...
Felix's user avatar
  • 21
0 votes
0 answers
45 views

How to pin openssh from eoan in bonic

I want to pin only "openssh-server" package from eoan to my current bionic distro which has an old openssh version.
Mostafa Nafady's user avatar