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.

Filter by
Sorted by
Tagged with
6 votes
1 answer
982 views

scp failing on 24.04

I recently upgraded a box to 24.04 and several scripts using scp are failing. They work perfectly on an older box but the new box can't copy the files and results in a "No such file or directory&...
JDN's user avatar
  • 63
-1 votes
1 answer
55 views

ssh only works after rebooting. Ubuntu 22.04

A local Mac can connect remote Ubuntu 22.04 by ssh for about 16 minutes, and disconnected. The local machine screen said Connection to xx.xx.xx.xx closed by remote host. Then I tried to connect the ...
scoffieldisxu's user avatar
-2 votes
0 answers
49 views

SSH hanging with Raspberry Pi

I have a RaspberryPi Model 3A+, with the Raspbian OS installed. I am trying to SSH from my laptop, into my Pi over my LAN. Initially I encountered no issues. I could ssh in fine, execute commands, etc....
user10709800's user avatar
0 votes
1 answer
68 views

Commands in the same line with sshpass not recognized

I was running a script normally. But suddenly, all the commands in the same line with sshpass started being not recognized. For instance: sshpass -p "$password" rsync -a -e "ssh -o ...
Dimitris Tsiaousidis's user avatar
0 votes
0 answers
37 views

Ubuntu OpenSSH sftp server

I installed OpenSSH. Changed the sshd_config. Created a user. I created a user, but I get a error when connecting with WinSCP. Why? (Networkerror: Software caused a disconnect)
SVN_Joschi's user avatar
0 votes
1 answer
1k views

Installing openssh-server in Ubuntu-24.04 on WSL2

I just installed Ubuntu-24.04 from the Microsoft Store into WSL2 on my Windows 11 host. The first thing I wanted to install after logging in and upgrading the installation was openssh-server, but that ...
Jürgen Pfeifer's user avatar
0 votes
0 answers
175 views

SSH Error:Permission denied, please try again

Recently, I installed a new Ubuntu 22.04 LTS and found that it worked the first time I logged in, but then it didn't! I did the following configurations, but the problem is not solved sudo vi /etc/ssh/...
yan's user avatar
  • 1
-1 votes
1 answer
112 views

Delete old versions of sudo [duplicate]

Regards, I hope you be fine. I'm trying to close vulnerabilities in ubuntu, currently working with jammy jellyfish. A vulnerability that I'm closing is with sudo when I use the command dpkg -l or apt ...
Jose99's user avatar
  • 1
0 votes
1 answer
179 views

Is it expected to not have `rsyslog` installed after a fresh install of ubuntu server?

Is it expected to not have rsyslog installed after a fresh install of ubuntu server? If yes, where do logs that go to /var/log/auth.log actually go then? Here is what happened: I was looking for /var/...
Michael's user avatar
  • 103
2 votes
1 answer
1k views

SSH freezing moments after successfully connecting, then Broken Pipe

Sorry to ask about a topic that's been done to death, but I haven't found what I need yet. I've set up a lambda machine with an SSH server. I can connect to it from my laptop with ssh -l <username&...
Pavel Komarov's user avatar
3 votes
1 answer
293 views

How to delete users who are logged in

We tried to remove them by killing the processes but they are still there. This is how users appear can't access root pts/18 tmux(1804832).%13 can't access root pts/19 tmux(1804832).%...
abdoul rachid's user avatar
0 votes
0 answers
44 views

How to Login to SSH with Dynamic username

I some external Gateway through which the ssh requests come and need to log the sessionID in the linux when the connection happens. I can send the sessionID (some string) along with the username while ...
CRYSTAL's user avatar
0 votes
0 answers
179 views

Allow access to openssh server without authentication

First this is not a duplicate of any thread ive gone thru all of them and either solutions were not working for OPs or they werent working for me. I want to allow specific user to use my ssh server ...
Surepic 342's user avatar
0 votes
0 answers
280 views

port 22: Connection refused, but only 60% of the time

I am running this: ssh_command = f'ssh -vvv -o StrictHostKeyChecking=no -i {private_key_file} ubuntu@{public_ip}' # Use os.system to execute the SSH command in a subshell os.system(ssh_command) ...
BigMistake's user avatar
0 votes
1 answer
424 views

How to avoid Broken Pipe error from client side?

How do I prevent the Broken Pipe error from the client side of the ssh connection on ubuntu? Let's say that slurm is running on the server and I just made a salloc request. If the connection is broken,...
SO_32's user avatar
  • 187
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
0 votes
1 answer
550 views

send_pubkey_test: no mutual signature algorithm

Here is the client log output after a ssh -vvv user@machine (I think this problem is related with the deprecation of sha-1). I have already tried to create a new key/par for ed25519, but it doesn't ...
ABu's user avatar
  • 245
2 votes
2 answers
1k views

Can't I scroll in the terminal up? Terminal shows only 24 rows? The scrollbar on the right fills the entire vertical height of the window?

Based on: Terminal output scrolling is gone (Headless 11.10 Server, Upgraded from 10.10) and https://superuser.com/questions/1331658/why-cant-i-scroll-in-the-terminal and my own dire situation right ...
michal roesler's user avatar
4 votes
1 answer
146 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 ...
SO_32's user avatar
  • 187
0 votes
0 answers
3k 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="...
usao's user avatar
  • 1
0 votes
0 answers
121 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 ...
nishat's user avatar
  • 1
0 votes
1 answer
413 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. ...
Souldiv's user avatar
  • 53
0 votes
0 answers
2k 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 ...
SC542164's user avatar
0 votes
0 answers
29 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.
Harshal Mistry's user avatar
1 vote
1 answer
162 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 ...
cazort's user avatar
  • 160
1 vote
1 answer
420 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 ...
Ramansh Sharma's user avatar
0 votes
1 answer
252 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 ...
Luke's user avatar
  • 545
0 votes
0 answers
45 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 ...
Gove Lee's user avatar
3 votes
1 answer
354 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-...
latentcode's user avatar
1 vote
1 answer
87 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. ...
Chris J C's user avatar
0 votes
0 answers
2k 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 ...
SO_32's user avatar
  • 187
0 votes
1 answer
333 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 ...
Greg B's user avatar
  • 1
1 vote
1 answer
17k 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 ...
Kat Fitzgerald's user avatar
0 votes
1 answer
241 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 ...
Usermaxn's user avatar
  • 217
3 votes
3 answers
2k 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 ...
Abdul Muhaymin -Free Palestine's user avatar
0 votes
0 answers
284 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 ...
scranley's user avatar
0 votes
1 answer
565 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 ...
user user's user avatar
0 votes
0 answers
131 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 ...
Sandman Shiri's user avatar
0 votes
0 answers
227 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'...
Mhmoud Njedeen's user avatar
0 votes
0 answers
1k 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 ...
Stefan's user avatar
  • 1
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
788 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
106 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
183 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
  • 176
0 votes
1 answer
1k 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
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 ...
KarmaciouS's user avatar
1 vote
1 answer
4k 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
531 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
1 answer
215 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 ...
Semyon Bayandin's user avatar

1
2 3 4 5
11