Skip to main content

Questions tagged [ssh]

Secure Shell (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.

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

Is it possible to configure `kubectl exec` to behavior the same way as `ssh` when there is a client disconnect?

Empirically, it looks like kubectl exec and ssh behave differently on disconnects of the client. I performed the following experiments. SSH # Terminal 1 ssh <random_host_in_aws> bash -c 'sleep ...
merlin2011's user avatar
0 votes
1 answer
42 views

"Network error: software caused connection abort"

I am experiencing a persistent issue when using PuTTY. I can logon to my ubuntu server, but after 5 minutes the connection is terminated with the following message: "network error: software ...
Vaidehi Arbhi's user avatar
1 vote
1 answer
79 views

How to allow ssh-rsa with OpenSSH 8.7 on Amazon Linux 2023

I'm trying to enable ssh-rsa (eventually just for one host) but the changes I make don't seem to be working with OpenSSH 8.7 on Amazon Linux 2023. First, I added these lines to the bottom of /etc/ssh/...
Russell G's user avatar
  • 163
0 votes
1 answer
272 views

Server blocking after enabling ufw

I recently leased a Ubuntu 22.04 VPS server from a data centre in France. My office PC that links to this server is in Ireland. My mobile internet IP seems to be static, i.e. it is the same from day ...
Trunk's user avatar
  • 103
0 votes
0 answers
37 views

File not received properly in Azure server using SFTP

I am copying a file from my z/OS Unix System Services (USS) server to a Windows server in Azure using SCP. I am able to connect with both SSH and SFTP to the Azure server on port 22 from my USS server,...
Brindha Sharadha's user avatar
0 votes
0 answers
30 views

Frequent SSH disconnections on Ubuntu server after successful authorization

On a remote computer with Ubuntu, an OpenSSH server is running. The connection to it is established via port forwarding on the router. Previously, access was only available from the internal network, ...
Cyberturist's user avatar
0 votes
2 answers
89 views

SSH to instance without its floating IP address

Hello let's say i don't want to use floating IP adresses for some reasons. I have set up routes using br-ex to connect to my instances. My openstack server is at 10.90.0.236. Now i have instance Test-...
Fantarina's user avatar
0 votes
0 answers
12 views

on DSM7 script with ssh runs well manually, fails when launched as same user in crontab

on DSM7 script with ssh runs well manually, fails when launched as same user in crontab: Host key verification failed. rsync error: unexplained error (code 255) at io.c(254) [sender=3.1.2]
brunobhr's user avatar
1 vote
1 answer
74 views

Which key was used to open my user account

This is question is an upgrade attempt of Find out which ssh key was used to access an account -- Some scripts for proper installation Where I use rsyslog to generate separated log file, readable by ...
F. Hauri  - Give Up GitHub's user avatar
0 votes
0 answers
25 views

Re-use a SSH Key Generated on an Ubuntu Machine on a Windows Machine

I once generated a SSH key on Ubuntu and have been using that key in different apps and services such as Visual Studio Code and DigitalOcean. Right now, I don't have access to that Ubuntu machine and ...
Mohsen's user avatar
  • 1
1 vote
2 answers
48 views

Why do SSH config declarations stop executing when using SCP?

I am using OpenSSH config's "Match...exec" feature to conditionally connect to AWS EC2 instances via a tunnel. I have been building upon https://gist.github.com/Maks3w/...
Josh F.'s user avatar
  • 11
0 votes
0 answers
20 views

Any operation in remote docker context fails, while ssh works fine

On my local machine I am trying to use a docker context on a remote server like this: sudo docker context create contextName --docker "host=ssh://user@domain" sudo docker context use ...
shs's user avatar
  • 101
1 vote
0 answers
61 views

Unable SSH/SFTP from Azure VM to On-Prem Linux Server with error “Key_exchange_identification : read connection time out, Banner exchange time out"

I'm currently facing an issue connecting via SSH and SFTP from an Azure VM (Windows Server 2022) to an on-premises Linux server (RedHat 8.9). error_details_image Here are the details: Environment ...
Soon Kien Yuan sd200 40's user avatar
0 votes
0 answers
19 views

What package includes the rrsync command?

The rrsync command is the rsync server binary, called from ssh server when execute a rsync client command for a remote connection, but what package includes the rrsync command? In my pc is located in: ...
e-info128's user avatar
  • 173
1 vote
1 answer
63 views

Why can I use an SSH private key with group permissions on a remote server but not on my local machine?

Introduction There is something I don't understand with SSH private key permissions and I'd like some in-depth explanations about the difference in behavior I'm noticing Here is the thing, I am trying ...
Charystag's user avatar
0 votes
1 answer
91 views

SSH not doing MFA when logging in

I followed the steps here https://ubuntu.com/tutorials/configure-ssh-2fa#1-overview to set up SSH to do multi factor authentication using Google Authenticator app, on Ubuntu server 24.01. However ...
Paul's user avatar
  • 115
0 votes
0 answers
24 views

how to add multiple interfaces in `/etc/hosts.allow` file?

SSH is listening on all the available 10 Ethernet interfaces in my system. I have tested using nc 160.49.198.97 22 command in Linux. To allow only particular interface and block others, i have created ...
Karma Yogi's user avatar
-1 votes
0 answers
12 views

How to directly save video from camera (of linux machine A) to another machine B over ssh [migrated]

I am using a camera on my Linux-based computer. I want to store the camera feed directly into my Synology Network attached storage (NAS) which I am accessing through SSH over an ethernet cable. I am ...
Sparsh Sharma's user avatar
1 vote
1 answer
93 views

How to log connection information on the host being used as ProxyJump?

I have a bastion host (BASTION) through which users connect to other servers (S1, S2, S3). They connect using the following command ssh -J username1@BASTION username2@S1 If someone connects this way, ...
cyberpirate92's user avatar
0 votes
0 answers
55 views

How to diagnose slow ssh with OpenStack floating IP

I run VPS instances created with OpenStack hosted by a major provider. When I ssh from machine1 in the LAN to a machine2 or local IP address, the connection is immediate and always fast. With ssh from ...
TonyG's user avatar
  • 161
4 votes
1 answer
881 views

How to change the SSH server port on Ubuntu?

I have changed the SSH server config file /etc/ssh/sshd_config: Port 2222 Then I restarted the SSH server service: systemctl restart ssh.service. However, the SSH server is still running on port 22, ...
phanaz's user avatar
  • 462
1 vote
1 answer
96 views

Disable insecure MACs for sshd

I need to disable the following MACs on my OpenSSH server: [email protected], [email protected], hmac-sha2-256, hmac-sha2-512, hmac-sha1 I confgured /etc/ssh/sshd_config with: Ciphers ...
Nicola Mori's user avatar
0 votes
0 answers
48 views

UDP routing through VPS to local machine for server hosting

I am hosting a Minecraft server using geyser to allow both bedrock and java players to join my server. Java compatibility was easy, I set up a ssh tunnel from Local to VPS and all worked well, however ...
clivet268's user avatar
0 votes
1 answer
77 views

`ls --color=auto` works locally but not when connecting over SSH

This question's purpose is to document my findings and solution after two hours of struggle, in hopes that it will be useful to others in the future. Situation I've got a fresh Linux machine set up. ...
cyqsimon's user avatar
  • 345
0 votes
1 answer
47 views

blocking all ports except SSH on a machine running a Docker container

I have a virtual machine (let's call it "M") on the cloud where a MariaDB database runs within a Docker container. The client apps on other machines connect to the database via a SSH tunnel, ...
bfredo123's user avatar
  • 103
0 votes
1 answer
134 views

Cant ssh to my server

I was trying to upgrade debian buster to bullseye, during the installation/upgrade of packages putty crashed. Since then I cant connect anymore to my server. I tried via ssh, telnet, virtualmin(some ...
Anarkie's user avatar
  • 11
0 votes
1 answer
101 views

PowerCLI: How can I enable SSH on a vCenter Server Appliance?

Through the management interface served on port 5480 by default, you can enable SSH access to a vCenter Server Appliance. How can it be done programmatically using PowerCLI?
stackprotector's user avatar
1 vote
0 answers
32 views

Scaleway - timeout when I try to access my instance

I've created a new instance on Scaleway. An IP public is attached on my instance: I've generated a SSH public / private key pair (with PuTTY Key Generator - type of key "EdDSA"): Now, I've ...
Scipius2012's user avatar
0 votes
1 answer
193 views

How to Create a Custom Action in Fail2Ban to Execute a Bash File for Printing a Banner [duplicate]

I'm using Fail2Ban to enhance the security of my server by automatically banning IP addresses that attempt to log in unsuccessfully multiple times. I'd like to go further by displaying a custom banner ...
prince royce's user avatar
2 votes
1 answer
174 views

how to handle ssh certificate based authentication from one region to another with certificate validity time?

Im trying to create an ssh certificate using keygen tool from One region(ex: india) to connect the server in another region(ex: us). Im giving the validity for the certificate as (current time) to (...
gowtham krishna's user avatar
0 votes
0 answers
38 views

sshuttle ssh_packet_write_poll error on pfsense

I’m trying to use sshuttle on pFsense CE OS and when I execute sshuttle -r *my_actual_username*@*my_actual_host* 0.0.0.0/0, following error shows up: client_loop: ssh_packet_write_poll: Connection to *...
nima's user avatar
  • 3
0 votes
1 answer
134 views

Why is Ubuntu 22 still permitting login as root?

Running Ubuntu 22, it still allows me to log in via SSH as root-user. I run the following configuration in /etc/ssh/sshd_config: PasswordAuthentication no PermitEmptyPasswords no PubkeyAuthentication ...
itinance's user avatar
  • 103
0 votes
0 answers
50 views

pam.d with MFA skips public-key authentication

I have a pam.d configuration with MFA authentication on a test server. I noticed that the IP addresses that are in file access-without-MFA.conf mentioned, can login without password and without ...
Andrew_ram's user avatar
0 votes
1 answer
232 views

How to disable Network Interface for SSH?

In my linux machine, I have 10 network interfaces available like eth0, eth0.67, eth0.70, eth0.97 etc,. When i run the command nc 160.48.249.170 22 to check, i get like below: root@icon:~# nc 160.48....
Karma Yogi's user avatar
-1 votes
1 answer
43 views

When doing SSH through an intermediary server what are the differences between Local Port-forwarding and Jump Host?

To SSH to Server-B through an intermediary (Server-A), what are the differences between the following two approaches and which one is better? Local port-forwarding ssh -L 2222:server-b:22 root@server-...
eee's user avatar
  • 1
0 votes
0 answers
338 views

Network error:kex_exchange_identification: read: Software caused connection abort banner exchange (SSH)

I met this issue while trying to clone a repo in a gitlab private server, so I added verbosity and tried to connect to it first here is the output $ ssh -i test -T -vvvv [email protected] ...
ayman cheddad's user avatar
0 votes
2 answers
85 views

SSH to EC2 times out, but other instances in the same security group are reachable

Something really weird happened to one of my EC2 istances. So I have a security group and a bunch of instances associated with that group. I can SSH into all of those intances. I created a new ...
Gino Pane's user avatar
  • 101
0 votes
1 answer
109 views

Dynamic port forwarding using tsh ssh -D cripples nmap functionality

I am having some issues when trying to use a teleport node as a sort of proxy to scan resources inside networks behind that said proxy node. My setup looks like this: I have a node inside my Teleport ...
Tudi Alex's user avatar
0 votes
1 answer
311 views

SSH login fails with "Permission denied" error after upgrading Debian from Bullseye to Bookworm

I am unable to SSH into my Debian server after upgrading from Bullseye to Bookworm. I have tried various troubleshooting steps, but the issue persists. Error message: Last login: Wed Apr 10 13:42:16 ...
Gush's user avatar
  • 101
0 votes
0 answers
141 views

"client_loop: send disconnect: Broken pipe" error when trying to log as root with public key authentication

I want to log in as root user using publickey authentication to my OpenSSH server configured that way: Include /etc/ssh/sshd_config.d/*.conf KbdInteractiveAuthentication no UsePAM yes PermitRootLogin ...
Pierre's user avatar
  • 83
0 votes
0 answers
23 views

How can I configure SSH on my laptop to use a Control Master on a remote gateway?

I have a server, let's call it server, which requires a 2FA authentication every time. So, I can set up ssh multiplexing to reduce the number of required authentication. However, I usually carry my ...
Yuxuan Lu's user avatar
  • 101
1 vote
2 answers
478 views

SSHD: no matching host key type found. Their offer: [email protected]

In short, I have a pipeline in GitLab CI that runs on an alpine:latest image. In the pipeline I run to install ssh: apk update && apk upgrade && apk add --update openssh And then I ...
rhuanpk's user avatar
  • 111
1 vote
0 answers
207 views

Is there a way to disable all internet access while having ssh open on a docker container

The end goal is very simple. Open up SSH port 22, but disable internet: I can ssh into the docker container, but I can't do anything that requires an internet connection (download packages, curls ...
Realman78's user avatar
0 votes
0 answers
55 views

SSH tunel on Linux

I am creating an SSH tunnel with this command: ssh -L 0.0.0.0:9944:localhost:9922 localhost -N -p 8844 It works great, no problems. But, for some reason, when I execute this command above in my ...
Samul's user avatar
  • 316
1 vote
1 answer
96 views

FreeBSD user has no permission on .ssh directory

I have a problem on FreeBSD 14.0 - the ~/.ssh/ directory is owned by me, but I can not access it as myself: $ ls -al .ssh ls: .: Permission denied ls: ..: Permission denied ls: authorized_keys: ...
Alex's user avatar
  • 183
0 votes
0 answers
238 views

SecureCRT Does not Even Offer to Import Host Key

I am troubleshooting an SSH connection between a Windows client running SecureCRT v8.1.4 and an Oracle Linux 9 server running OpenSSH v8.7. The client connects but then drops the connection ...
scarville's user avatar
0 votes
0 answers
113 views

Ansible: Failed to connect to the host via ssh; unknown key

I encountered an issue while connecting SSH host on Ansible. The error message is: UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: ...
陈青海's user avatar
0 votes
0 answers
42 views

Unable to Connect via Port Knocking on Specific Port

I am trying to set up port knocking on my server to enhance security. I've configured my firewall rules to use port knocking, where I have to connect to specific ports in a specific sequence before ...
noobintech's user avatar
1 vote
1 answer
169 views

Even if SSH is set up, it always asks for the password when logging into the server

I have an Ubuntu server. I use ssh to access it. It worked fine at first. When user@IP is given along with SSH key, it will log into the server without asking for password. But recently, even with SSH,...
Sachintha madhawa's user avatar
0 votes
1 answer
588 views

Debian 12 Bookworm running OpenSSH_9.2 only allows rsa-sha2-512, rsa-sha2-256 and ssh-rsa server host key algorithms

On a Debian 12 Bookworm (running OpenSSH_9.2), which was recently upgraded from Debian 11, only the rsa-sha2-512, rsa-sha2-256 server host key algorithms are available by default. Setting ...
JavaxUK's user avatar
  • 21

1
2 3 4 5
180