Skip to main content

Questions tagged [ssh]

SSH, or "Secure Shell", is a networking protocol for securely connecting to a remote computer over an unsecure network. SSH is also the name of the default command-line SSH client. This tag is for questions involving using and troubleshooting SSH connections, as well as setting up and configuring SSH for applications which use the SSH protocol. This tag should be used with other tags to better identify the environment of the problem.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Logging into SSH immediately closes the connection

So, I have searched and searched today and cannot find an answer to this issue. I am running Ubuntu 22.04 on Google Cloud. I am able to SSH into it with google cloud directly only. However, if I try ...
swhitlow's user avatar
  • 109
-1 votes
0 answers
53 views

X11 DISPLAY Configuration for SSH and Nvidia Optimus Graphics

There are one Intel integrated graphics and the other Nvidia graphics card in my remote box, where OpenSSH and X11 servers run on Ubuntu Desktop 24.04. The graphics drivers and utils are installed ...
sof's user avatar
  • 495
-2 votes
0 answers
38 views

Ubuntu 22.04 update disconnects Windows 11 network services

I'm running a Ubuntu 22.04-based file server (Samba to Windows 11 clients). Several weeks ago I ran apt upgrade. My ssh connection dropped part way through the upgrade. From that point I can get a ...
A. Beckman's user avatar
0 votes
3 answers
72 views

How to update an SSH key on a remote machine when I have a new key and an old one that still works?

On my local machine, I have two keys: ~/.ssh/id_rsa ~/.ssh/old/id_rsa/ On the remote machine ([email protected]) I have only ~/.ssh/old/id_rsa, already in authorized_keys. Is there a single line I can ...
Josiah Yoder's user avatar
1 vote
0 answers
48 views

SSH session over ipv6 feezes after short time, works fine over ipv4

I have set up a server and a router (two machines) with both ipv4 and ipv6 (ULA). Ubuntu Version: 24.04. When using ipv4 for both ssh and cockpit everything works fine. On the other hand, when using ...
mispp's user avatar
  • 111
0 votes
0 answers
22 views

how to set up ssh tunnel for apt-get update on WSL2?

My local machine has Ubuntu 23.10 on Win 10 WSL2. The local machine has no direct access to public Internet. It has access to a portal machine which communicates with public Internet. How can I run ...
user1521062's user avatar
0 votes
0 answers
13 views

MFA when accessing the system over SSH

I ask if google-authenticator as SSH 2FA compliant with PCI-DSS or not? Thanks
Ahmed Aljiledi's user avatar
-2 votes
0 answers
116 views

qt.qpa.xcb could not connect to display even with -X when SSH-ing

I'm trying to run QGroundControl on my Jetson Nano (installed with this repo) while ssh'd on it. The goal would be to have the UI of QGC on the client display (my laptop). When running: ssh -X <...
grybouilli's user avatar
2 votes
0 answers
48 views

How to enable /etc/update-motd.d/ messages to show on SSH login

I have two servers running Ubuntu 22.04.4 LTS. One of them (let's call it host1) I will be greeted with the motd upon logging in via SSH as shown below. However, on the second one (host2) this will ...
cornfed's user avatar
  • 21
-1 votes
0 answers
89 views

GNOME 46+ apps [X11 / Wayland] over SSH on Ubuntu 24.04+: proper setup to eliminate starting delay?

Basically over the years I've gotten used to this just working...and it still does without delay for everything but GNOME apps. Now it takes "a while" (on the order of tens of seconds?) for ...
bvargo's user avatar
  • 575
0 votes
0 answers
36 views

Locked out of EC2 Ubuntu Instance after enabling MFA

I tried adding MFA on my EC2 Ubuntu instance, basically, I followed the steps here: Help! cant seem to get 2FA to work for my AWS ec2 SSH Except I did not comment @include common-auth in the sudo nano ...
JnrLouis's user avatar
0 votes
0 answers
23 views

SHA256SUMS and SHA256.gpg problems

Hi: ¿where can I get the SHA256SUMS and SHA256.gpg for UBUNTU 24.04-ISO? I can not find in ubuntu.com. It is so hard to find. Thanks
Juan Manuel's user avatar
0 votes
0 answers
28 views

NFSv3 / NFSv4 TCP ports

In short, I need to know if an NFSv4 share in my Ubuntu server 22.04 can work as NFSv3 with only port TCP 2049. Let me give you the context: I have a Ubuntu server 22.04 with PXE/iPXE environment, ...
Free's user avatar
  • 41
1 vote
0 answers
223 views

Ubuntu Server - Restricting ssh access to one IP address

I have a VPS in a datacentre in France. I upload files from my base in Ireland using mobile phone Internet. My IP seems to be the same from my end. I don't use a proxy but don't know if my mobile ...
Trunk's user avatar
  • 399
0 votes
2 answers
52 views

setting up .ssh directory so that I don't have to enter password everytime I do scp command

I've see this post but couldn't exactly follow it. ( https://superuser.com/questions/8077/how-do-i-set-up-ssh-so-i-dont-have-to-type-my-password ) I want to access from machine A(local) to machine B (...
Chan Kim's user avatar
  • 2,111
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
0 votes
0 answers
52 views

ubuntu20, 22 - how to apply ssh custom password prompt

currently, password_prompt is applied like below in /etc/sssd/sssd.conf [prompting/password] password_prompt = PASSWORD : but when I try ssh login, the host asks me password: Ubuntu20, 22 are all same....
Seojeong Kim's user avatar
-1 votes
0 answers
46 views

Installing ubuntu-desktop on EC2 breaks SSH after reboot

I'm trying to: get ubuntu server on AWS EC2 install ubuntu desktop on the server install tightvnc so on boot, I can use vnc to connect from another computer install noVNC so I can connect from ...
noname's user avatar
  • 99
-1 votes
0 answers
43 views

Can't login SSH on Ubuntu Core 24 with QEMU

I'm new in linux and i'm trying to use the IoT Ubuntu Core, so i created my own Ubuntu Core 24 image with this tutorial https://ubuntu.com/core/docs/build-an-image and tried to visualize this image ...
rafael-ricardo's user avatar
-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
0 votes
0 answers
70 views

Can not access server via SSH, Permission Denied

I have recently set up a server on an AWS EC2 instance with Ubuntu 24.04. I am trying to change the configuration to authenticate via password but when I try to log in I get a 'Permission denied, ...
KKBSE2016's user avatar
-1 votes
0 answers
31 views

SSH not working on port22 after checking open port, updating UFW, port fowarding on router and confirming internet carrier ports status with carrier

This is my first time trying to make an SSH tunnel. The purpose is to make an offsite backup our server (server A) in the office which is about 1 mile away. I have set up all ports on the office ...
Tyran Mincey's user avatar
-1 votes
1 answer
133 views

Need to configure user password policy on Ubuntu 22.04 server

We want to configure the following user password policy on our Ubuntu 22.04 server. I have referred to online documentation but have not found a consolidated guide that can help us implement the ...
Ak Singh's user avatar
-1 votes
0 answers
23 views

Issues with PiVPN Wireguard Port Forwarding on Ubuntu Server

I'm experiencing some difficulties with setting up PiVPN with Wireguard on my Ubuntu server. Here are the details of my setup and the issues I'm facing: Setup: Ubuntu Server: Running on my home PC. ...
Kaustuv Mazumder's user avatar
0 votes
0 answers
20 views

My laptop refuses ssh connections until I log in from the console

My laptop refuses ssh connections until I log in from the console After I walk over to the laptop and log in from the console then it will start accepting ssh connections
fugee ohu's user avatar
  • 101
0 votes
0 answers
44 views

noble 24.04 ssh after DHCP reservation

When I installed 24.04 on my two machines (let's call them foo1 and foo2), Ubuntu settings has an ssh feature in settings|system|secure shell which would allow me to simply type ssh foo2 from foo1 to ...
Mark Smith'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
2 votes
0 answers
78 views

After Ugrading Ubuntu 23.10 to 24.04, ssh-add is broken

This was working before the upgrade. Now I see the following error: $ ssh-add -l error fetching identities: Invalid key length My SSH version: ssh -V OpenSSH_9.6p1 Ubuntu-3ubuntu13, OpenSSL 3.0.13 30 ...
jason120's user avatar
  • 106
0 votes
2 answers
111 views

Portforwarding Port 22 ( for ssh ) over JioFiber Router not working ( port 22 is closed )

I am using a JioFiber Router ( Firmware version : SRCMTF1_JCOW414_R2.52.1 ) . The host that I want to expose to the internet has Ubuntu Server 24.04. Private IPs : Router ...
ubuntu-server-noob's user avatar
1 vote
0 answers
93 views

SSH service no longer automatically starts after Ubuntu server upgrade to 22.04 LTS

I have a VPS running Ubuntu server 22.04 LTS which was recently upgraded from 20.04 LTS. Since the upgrade, the SSH service no longer automatically starts - it worked for 2+ years without any issue ...
rumlauf's user avatar
  • 23
0 votes
0 answers
78 views

Error message on boot: Dependency failed for sssd-pam-pri... Service responder private socket

[DEPEND] Dependency failed for sssd-pam-pri... Service responder private socket. [DEPEND] Dependency failed for sssd-pam.soc... SSSD PAM Service responder socket. [DEPEND] Dependency failed for sssd-...
Abdoussalam tine's user avatar
0 votes
1 answer
209 views

Can't git clone [email protected]: Permission denied (publickey)

I upgraded my laptop from Jammy to Noble yesterday and was redoing my SSH keys for github. I created a new ssh key, added it with ssh-add, and follows all the steps on the github website. I am getting ...
Moksh Chitkara's user avatar
0 votes
0 answers
27 views

Automate console-conf on Custom Ubuntu core

i'm building a custom image for a RPI. When i build a pre-designed build from the RPI imager on boot it asks me to press enter to configure and i get to insert my Ubuntu one mail adres. When building ...
Jayjay_seal's user avatar
0 votes
0 answers
47 views

Slow ssh logins

I have a bunch of servers all running Ubuntu 20.04 and all configured the same, we use Chef to configure things. System details: OS: Ubuntu 20.04LTS with the latest patches Hardware: Dell R730s, ...
ccjohnson's user avatar
0 votes
2 answers
63 views

Ubuntu user usage limitation or watchdog

I am maintaining a compute server that runs Ubuntu on bare metal infrastructure and is used by regular users. We have recently encountered a challenging issue where some users with a lack of basic ...
zhang's user avatar
  • 149
0 votes
0 answers
43 views

Exporting the display of applications running on Ubuntu (not virtual) under Windows to remote machines

I'm sure this is answered somewhere, but I'm a bit older and have been retired for a while, so I apologize in advance. From time to time I need to get pictures, or PDFs from my wife's computer. My ...
John Diller's user avatar
0 votes
0 answers
84 views

Ubuntu server: Systemd-networkd-wait-online.sercice failed during startup and Invalid login bug

Ubuntu server 24.04 was working correctly for a few hours after install. After I rebooted it, there were two errors: Systemd-networkd-wait-online.service failed every time on boot. I was also not ...
Ajwat Mustafa's user avatar
0 votes
1 answer
77 views

Cant connect to local ubuntu server with ping or ssh, server can ping internet n router

Installed ubuntu server and openssh on old laptop installation went well. Settings good, all firewalls down, ssh active BUT still no machine can ping server n server can ping machines. Tried pinging ...
Kuziwakwashe Chikwete Swagger's user avatar
0 votes
1 answer
289 views

Permission denied even if you enter the correct password when connecting to uuntu with ssh

I'm using Ubuntu 24.04 version of ec2 and I got into trouble here. Originally, public key access was good using a pem key on Ubuntu ec2, but I wanted to access ec2 only with a password without a pem ...
5hseok's user avatar
  • 1
1 vote
1 answer
68 views

Ubuntu ssh login welcome message displaying wrong root partition size after partition/filesystem expansion

I've been running a Dell Wyse 5010 (AMD dual core, 8GB Sata Dom and 8G Ram) as a NAS for home for a while, and just replaced it today with a 7020 (AMD quad core, 16GB ram and 60GB SSD) I cloned the ...
Mark Cramer's user avatar
1 vote
1 answer
34 views

how does ssh service know where the configuration is?

This is the service unit file: [Unit] Description=OpenBSD Secure Shell server Documentation=man:sshd(8) man:sshd_config(5) After=network.target auditd.service ConditionPathExists=!/etc/ssh/...
Mah Neh's user avatar
  • 81
2 votes
2 answers
416 views

How to know what details Ubuntu is using for SSH host?

On Ubuntu 23.10, when I open a terminal and ssh in to a host I have like this: ssh hostname.here.com It logs me in straight away (even when I've first booted up my machine, not just after I've logged ...
TommyPeanuts's user avatar
  • 1,126
1 vote
0 answers
72 views

After successful SSH connections can not type anything

I am using Ubuntu and after my successful login in my SSH I can not type anything. When I reboot my computer and open a Terminal, I run the command ssh root@****. I receive a password prompt where I ...
Pcelarnik Danevi's user avatar
0 votes
1 answer
211 views

Ubuntu Static Public IP not working (22.04)

We are trying to install a Machine with Ubuntu Server 22.04 in a Data Centre. The DC Host told us these public IP Addresses: IPv4 Net: XXX.XXX.XXX.160/29 Gateway: XXX.XXX.XXX.161 (The X's are the ...
jovan's user avatar
  • 103
0 votes
0 answers
115 views

pam_tally2.so in common-account locking ssh out on Ubuntu 24.04

I just noticed a strange behavior on Ubuntu 24.04 while applying the CIS level1 script. One of the sections of this script is going to append the following line to the file /etc/pam.d/common-account: ...
fedeman18's user avatar
0 votes
0 answers
62 views

Cannot SSH to my server, systetmd-login fails

I cannot SSH on my remote server (Ubuntu 22). When I try, it loads indefinitely. Here is the ouptut of a ssh -v: Authenticated to x.x.x.x ([x.x.x.x]:22) using "password". debug1: channel 0: ...
C. Crt's user avatar
  • 131
0 votes
1 answer
75 views

'Connection refused lost connection' error while using scp command

I tried to transfer a file from an HPC system to a remote system using the following command line: scp /ANKAN/data/abc.pdf [email protected]:/data/ANKAN But I am getting the following error: ...
Ankan Sarkar's user avatar
-1 votes
1 answer
116 views

SSH Connection: Ubuntu Mate 22.04 64 bit on Raspberry Pi 4B (no screen)

I have a Raspberry Pi 4B 64 bit. I have flashed an Ubuntu Mate 22.04 Desktop 64 bit onto a 64GB SD card with Win32DiskImager (the reason I don't use official Raspberry Pi Imager/Etcher is because the ...
dansyw91's user avatar
1 vote
0 answers
32 views

PAM config issue trying to differentiate Google Authenticator secret based on root user

I have setup Google Authenticator PAM lib - on login I am trying to differentiate the secret file location based on root compared to other users. So far the below modification to /etc/pam.d/sshd ...
James's user avatar
  • 11
0 votes
0 answers
61 views

How to limit the scope of an authorized user in an SSH principals file using a FQDN?

I've been using the SSH AuthorizedPrincipalsFile feature for quite some time and it works fine, but I've discovered recently that it is possible to limit the provenance of a user using the "from=&...
jean-christophe manciot's user avatar

1
2 3 4 5
126