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.
518
questions
3
votes
1
answer
101
views
Secure remote copy with exceptions
In order to use some data that are stored and produced remotely I first download them via scp servername:/.../big_directory/* ~/. There are many files and the command includes everything. These files ...
0
votes
0
answers
23
views
Limit maximum concurrent ssh connections per user does not work when shell is /sbin/nologin
I have an Ubuntu server and when I limit the maximum connections per user using the config file /etc/security/limits.conf it works just fine. See below an example of my configuration in that file:
@...
0
votes
0
answers
108
views
ssh no matching host key type found
I have 2 Ubuntu 22.04.3 LTS servers. Both are the same version.
1:chia@chia00:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
2:chia@hp1:~$ cat /etc/os-releasePRETTY_NAME="...
0
votes
0
answers
370
views
Job for ssh.service failed because the control process exited with error code
I was trying to install ssh service and I did with this command: sudo apt install openssh-server and I tried to start it with this command: sudo systemctl start ssh but it gives me that error: Job for ...
0
votes
0
answers
42
views
Server sent invalid key length 31 (expected 32)
since certain time we are receiving occasional errors with making SSH/SCP connection towards Ub22.04 machine. The SSH/SCP connection simply fails with error:
Server sent invalid key length 31 (...
0
votes
0
answers
83
views
"ssh-copy-id user@ip_address" throws error
In UBUNTU system, I'm trying to set up remote login system. It is failing in ssh-copy-id step. It throws the following error:
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to ...
0
votes
1
answer
144
views
what is the use of setting up OpenSSH on Ubuntu Live Server 22.04?
Setup Info
I am using Hyper-V to spawn Ubuntu live 22.04 VMs. During the installation procedure it asks if I want to Install OpenSSH server, whether I select this option only results in one change. ...
0
votes
0
answers
388
views
SSH Connection Timed Out Ubuntu 20.04
I've looked through a million threads on this topic but nothing has worked. I'm trying to ssh into my linux through port 22. Connection is refused.
UFW is inactive and firewall-cmd is not downloaded
...
0
votes
0
answers
27
views
failed to fetch libraries for openssh-server + Temporary failure resolving software sources [duplicate]
I tried many ways like tried to find here gone through http://in.archive.ubuntu.com folders.
1
vote
1
answer
58
views
When Connecting To Remote Box SSH Fingerprint Changed After Upgrade from 18.04 to 22.04
I have a PHP script on my local box that connects to a remote box. Nothing on the remote box changed. And when I connect via the command-line, using the ssh command in a terminal, there was no change ...
1
vote
1
answer
73
views
How do I make ssh ask for the password every time?
I am using Ubuntu 22.04. This is an unusual question since most users want to make the ssh agent remember the password once it is entered per user session. I would like it to ask for the password ...
0
votes
1
answer
60
views
can not setup passwordless ssh using key by MANUALLY COPY public key to server
context:
firstly, i got a new ubuntu 20.04 server with a password
I'm using OpenSSH client on Windows 10
I want to do passwordless login, then I
ssh to server using passwords,
manually create ~/.ssh ...
0
votes
0
answers
35
views
Automatically disconnection on all port, including ssh and directadmin port
New to Ubuntu server for home, just start using it for a week and more.
The server is connectable by ssh and port 2222 (directadmin port) after the system startup (power on/reboot) but after the ...
3
votes
1
answer
153
views
Unable to ssh over WAN
System:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
Openssh version:
$ ssh -V
OpenSSH_8.2p1 Ubuntu-...
1
vote
1
answer
70
views
SSH - Driving me insane
I am using the latest ubuntu 22.04.03 on a headless system. SSH continues to add these lines to the top of the config file each and every reboot, therefore locking me out.
...
0
votes
0
answers
585
views
Session closed for user root
I'm trying to use an old pc as server (ubuntu desktop LTS 22.04.02) and to connect from my new personal computer (ubuntu desktop LTS 22.04.02).
The command ssh -Y me@the other ip address worked once ...
0
votes
1
answer
134
views
SSH Connection working on Terminal to Ubuntu-server but not showing on website on same machine
Looking at other questions I have gone through and tried various methods but the problem I am having is when I log into the ubuntu-server via terminal it works correctly, I am able to do all the ...
-1
votes
1
answer
6k
views
Upgrade OpenSSH from v8.9 to v9.3 on 22.04.2 LTS?
I'm working on shoring up some vulnerabilities in our environment, and one of them is that we're on OpenSSH 8.9. Our security team has advised us to upgrade to 9.3, but I'm not seeing anything ...
0
votes
1
answer
73
views
how to properly mask ssh server background service
I want to mask ssh so the ssh server is disabled till I need it myself. but still want to have ssh client capabilities.
I use openssh and the service is ssh.service and its alias sshd.service
I use ...
3
votes
3
answers
768
views
How to access my computer's terminal in the university dorm from another computer?
I have used ssh to access remote computers/servers where they provided me a username, a password, and an IP address (like xxx:xxx:xx.xx). What I need to do is:
ssh [email protected]
and then it ...
0
votes
0
answers
119
views
Apache2 webserver not accessible from outside LAN
I've just installed Apache2 web server on Ubuntu 22.04 with PHP, MariaDB and Wordpress. I've been following this YouTube guide:
https://youtu.be/pOESHd1G-HI
My Ubuntu machine's ip is: 192.168.1.16. I ...
0
votes
1
answer
269
views
Future Security Update to openssh-server on Ubuntu Server 20.04 LTS?
As per:
https://launchpad.net/ubuntu/focal/+source/openssh/+changelog
and
https://ubuntu.com/blog/what-is-an-ubuntu-lts-release
and
https://ubuntu.com/about/release-cycle
" For each Ubuntu LTS ...
0
votes
0
answers
89
views
ssh tunnel general process on a phone -used as vpn -user limitation failed
I'm using a couple of vm's as an ssh tunnel-vpn for both android and iOS, using ssh clients on both OS's. so now i want to limit the number of sessions per each user in order for each user is limited ...
0
votes
0
answers
146
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'...
0
votes
0
answers
49
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
625
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
13
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 ...
0
votes
2
answers
565
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 ...
0
votes
0
answers
56
views
(Ubuntu 22.04 Server) I need help
I'll try to be as simple as i possibly can. I'm in quite a pickle.
See, i'm currently a student of a DevOps course. Too bad, our professor gives little to no theory knowledge. Honestly, it is kind to ...
0
votes
0
answers
87
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
110
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
1
answer
670
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 ...
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 ...
2
votes
1
answer
848
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
1k
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 ...
0
votes
0
answers
109
views
SSH doesn't work
Blocked terminal - click here to see the image
Hi,
When I try to use ssh as a client, it blocks as it is possible to see in the picture, whether the address and port are correct or invented. I tried ...
0
votes
1
answer
436
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
118
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
114
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 ...
0
votes
0
answers
35
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
60
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
78
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
762
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 ...
0
votes
0
answers
45
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: ansible-contr[email protected]'s password:
Access denied
0
votes
0
answers
386
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
863
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
2k
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
1
answer
410
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
27
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 ...
0
votes
1
answer
148
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 ...