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
10 views

Creating user accounts when SSH certificate authentication is in use

We're using SSH certificate-based authentication to access our managed Linux servers. It works like charm, but as a big drawback: we need connect to the servers as root. There is no nominal user ...
0 votes
0 answers
11 views

linux ssh tunneling limitation per user

i want to limit the ssh tunneling per user I did create a user with only ssh tunneling permission ( no shell, no directory ) now I want to limit this user not be able to connect multi devices ...
  • 1
0 votes
0 answers
7 views

OpenSSH for Windows giving error 'server_accept_loop, posix_spawn failed' during high load

We have an SFTP server running using OpenSSH for Windows, with basically the default settings. An automated client, which I have no control over, sends thousands of XML files at once, and uses a ...
  • 107
0 votes
0 answers
11 views

ssh tunnel high latency with multiple connections

hi I'm running an Ubuntu 20.04.5 server I'm using it for dynamic port forwarding kinda like a vpn but the problem is when I'm downloading something or there is multiple connections ping increases ...
0 votes
2 answers
41 views

How to prevent ssh user to login if same user is still logged in?

For security reasons, I want to restrict users to have more than one ssh connection. In terminal, if I check $ last user , I'll find the user is still logged in. Is any solution to check if user is ...
0 votes
0 answers
21 views

ssh could not connect to the server, and disconnected after providing the username. Logs for sshd-ddd and ssh-vvv are provided below

The original text is in Chinese, translated into English using Google Translate. premise Because of the need to upgrade glibc2.28 to glibc2.29, and later required too many dependencies, the upgrade ...
  • 1
0 votes
1 answer
23 views

how to install OpenSSH Server windows 11 OFFINE, without internet connection with powershell

I need to isntall SSH server on windows 11 using powershell. It should be a script that isntalls SSH server and logs you in and does everything untill this: ssh domain\username@servername These are ...
  • 1
0 votes
0 answers
14 views

forwarding agent via Apache http

In my web application (Apache httpd) at Centos 7, I'm making an SSH connection with forward agent example: ssh -A $user@$proxyIP $user@DestinationIP ls -l if I want it to run in the terminal of ...
0 votes
0 answers
18 views

Why I can not set up bastion host tunnel to private EC2? Permission denied

I have bastion host and private EC2 instance in the same VPC. I am trying to set up bastion host tunnel to private EC2 [ec2-user@ip-10-0-1-130 ~]$ ssh -L 4000:10.0.0.146:22 ec2@54.227.127.12 ...
0 votes
0 answers
13 views

Why did the SSH API of my Jenkins instance get so slow?

Accessing my Jenkins 2.319.1 instance via SSH get very slow a few days ago. I don't know what changed. To narrow it down: Accessing Jenkins via HTTPS API is OK. The performance of the Web API is OK, ...
  • 101
0 votes
0 answers
59 views

X11 forwarding through WSL

I would like to connect to a remove linux machine via ssh from my windows machine, and forward the x11 server from that machine to mine to be able to view small interactive windows like those ...
0 votes
0 answers
52 views

PermitRootLogin set to no but can still use root on Centos Stream 9

Im following an RHCSA training course and to disable root I need to set PermitRootLogin to no in the /etc/ssh/sshd_config file and restart sshd using systemctl. I've done all this and can still login ...
  • 1
0 votes
0 answers
13 views

ssh tunneling Connection timed out

I am trying to transfer all the incoming data in my server to another server In other words, I want to create a tunnel. i use this command in ubuntu: ssh -o GatewayPorts=true -L 80:0.0.0.0:80 root@...
0 votes
1 answer
20 views

Install SSH key in an account that has no "usable" shell

A remote SSH server has a guest account with a known, non-blank password, that when logged in directly executes a text-based terminal game (not sure if via command, shell, or another method). The ...
  • 1,571
0 votes
1 answer
37 views

Access: (0000/----------) on a file in linux. Do I have a dead file?

Preface: I'm not a linux person. I'm a webdev trying to SSH into a Ec2 instance via WSL. I found the .pem file from the previous developer's (dude left the company) machine and moved a copy to my ...
0 votes
0 answers
71 views

Limit ssh vpn service to one device or connection per user

I did set up a ssh vpn on ubuntu server and created a user for that and everything is working fine. So how to limit this service to one device only for that specific created user? I am using password ...
  • 101
0 votes
0 answers
26 views

Issue while SSHing DigitalOcean Droplet

I am facing a problem while trying to SSH a DO droplet. It is running 4 Python scripts fetching data via API and storing in MySQL(running on same Droplet). It had no issue when I was running 2 Python ...
  • 255
0 votes
0 answers
36 views

How do I pre-configure SSH key on a new workstation?

I've been working on this project where my goal is to manage installs and updates on a park of Ubuntu nodes using Ansible. What is the issue ? If I want to connect to other nodes using Ansible, I need ...
1 vote
0 answers
89 views

Password auth works, but Public Key auth fails while connecting to OpenSSH server installed on Windows Server 2019

I'm trying to connect to a Windows Server 2019 via SSH for me to deploy my web app with GitLab CI/CD pipeline, so I installed OpenSSH server on it, and everything works fine if I logon using password ...
  • 11
0 votes
1 answer
27 views

ssh not working when custom key name is used

My SSH key(s) refuses to work on my new KDE neon install. I tried reinstalling the keys and finally found the problem in debug mode. The key file is not used because it has a custom name. This is ...
  • 25
0 votes
1 answer
20 views

SFTP - files are only transferred in short bursts for one client - routing issue or SFTP/SSH configuration?

I have a server running Ubuntu 21.04.1 LTS with daily incoming file transfers via SFTP. For the most part, these work fine, but there is one particular client where the transfer speeds are ...
  • 101
0 votes
1 answer
30 views

fail2ban doesnt work (Ubuntu/SSH)

i installed fail2ban it doesnt work im trying all the day to configure jail.conf.. this is my jail.conf(yes i changed the original one, my fault...) enabled = true port = ssh filter = sshd logpath =...
  • 1
0 votes
1 answer
31 views

Eliminate SSH timeouts between macOS and Ubuntu VM

I'm using ssh and Microsoft VS Code on my Mac (up to date Ventura) to connect to my Ubuntu VM (up to date 22.04). However, I keep getting inactivity timeouts (I believe this is from the macOS side): ...
  • 337
0 votes
1 answer
33 views

Can I tunnel all ports from remote server to 127.0.0.2 (for example), so work with it like with localhost

I have a remote server. I started on remote server app that listen localhost only. I want to tunnel this server to local ip like 127.0.0.2 and access this app through like I on remote server. I need ...
0 votes
1 answer
42 views

ssh -w bad tun device

I'm trying to create an SSH tunnel using the -w flag. I have 3 devices, for the sake of this question, I'll call them cmp1, cmp2, and cmp3. cmp1 is the device I am using, cmp2 is the jump server, and ...
  • 1
0 votes
2 answers
104 views

Unable to SSH into server when using passwordless SSH keys

This is probably an idiotic question, but I'll try and provide as much information as possible. If you need any extra details, then please let me know. I have a Mac running Ventura and an AlmaLinux ...
  • 306
0 votes
0 answers
43 views

Using PasswordAuthentication yes in sshd config but password is not accepted during login

I tried to enable password authentication in CentOS 7 only for one user - auditor, by having this lines in my sshd.config (at the end of file): PubkeyAuthentication yes ChallengeResponseAuthentication ...
0 votes
0 answers
14 views

Allow connection to internet but block local connections

PC A resides on a network with an ISP provided main router & additionally 2 WiFi Access Points, serving several devices beside PC A. I'm looking to set-up an internet accessible SSH service on a ...
0 votes
1 answer
52 views

Server refused our key - Putty trying to connect to a new VPS server

I am using Putty to connect to my VPS servers. I have created a new VPS server (Hetzner cloud) and have chosen the existing SSH key, as a security measure. When trying to connect to a newly created ...
0 votes
2 answers
36 views

How to configure SELinux such that it will not block the execution of endlessh

I was prompted an execution error when I check on endlessh status, I believe SELinux is blocking that execution, how to let SELinux allow that execution? [root@fedora endlessh]# systemctl status ...
  • 1
0 votes
0 answers
23 views

Add ssh to nginx configuration file

Is there a possibility to use the nginx utility tool for redirecting requests for the services of my Docker-based application to the HTTP port 80? The implementation contains three services, one of ...
  • 1
2 votes
2 answers
968 views

DigitalOcean Network Firewall allowing SSH connections on ports other than only 22

I have a droplet on DigitalOcean with IPv4 and IPv6 enabled. The droplet is behind a digital ocean network firewall with the following rules: Inbound: SSH TCP 22 All IPv4, All IPv6 HTTP TCP 80 All ...
  • 158
2 votes
0 answers
40 views

SSH Connection Closed after changing sources.list

working on a Ubuntu 19.04 Digital Ocean server. After updating sources.list to focal, so I could update repositories and install certbot, I found my self locked out of the server with the message ...
  • 21
0 votes
0 answers
38 views

ssh - connection refused

I have server on ovh.org. Since yesterday I can't login by ssh, I only have access to my server by ssh and my id_rsa.pub. How I can in anothery way connect to my server, and what I do on future in ...
0 votes
0 answers
39 views

openssh multiplex - master is running but ssh connections hangs

So I have a server running openssh 8 [root@jnode-fw15 ~]# rpm -qa |grep -i openssh openssh-clients-8.0p1-12.el8.x86_64 openssh-askpass-8.0p1-12.el8.x86_64 perl-Net-OpenSSH-0.80-1.el8.noarch openssh-...
0 votes
2 answers
152 views

Couldn't resolve host name for http://vault.centos.org/centos/8/AppStream/

Every time I run a command on my virtual server, I get the following error centos8 [root@servers03 ~]# dnf install epel-release CentOS Linux 8 - AppStream 0....
  • 1
0 votes
1 answer
81 views

i want to restrict all commands for user except ssh command

I am a root user and don't want that users can execute all linux command except ssh. They only have to use ssh command in their user. How to do that? please anyone help.
0 votes
1 answer
34 views

unable to ssh into guest OS (openBSD) from host (fedora) via port forwarding on kvm

The guest OS is running on ip address 192.168.122.217. I am able to ssh into the machine via this ip address [kabira@linux ~]$ ssh adming@192.168.122.217 adming@192.168.122.217's password: But when ...
  • 101
0 votes
0 answers
35 views

Having trouble to set up SSH socks proxy [duplicate]

I am trying to set up a SSH socks tunnel for my personal use. When I am using this command ssh -D 1080 -N root@[server public IP] to start the proxy I am getting this error: open failed: ...
  • 101
0 votes
0 answers
14 views

Cannot connect to EC2 Instance with ssh using MyIP

I was trying to connect to an ec2 instance using ssh , its working when source ip is 0.0.0.0/0 , but I can't connect when I change it to My Ip (I am using macOS).
0 votes
0 answers
37 views

Not connecting through SSH locally

I have a private network linking 2 servers: server 1: IP 10.0.0.2 server 2: IP 10.0.0.3 When server 2 is using a VPN, I want to be able to connect to server 2 through server 1 using the following ...
0 votes
1 answer
77 views

Ports not reachable after reboot

after I rebooted my server, I can no longer ssh into it. I am running headless Ubuntu 20.04.5 After investigating the problem, I've noticed, that all ports on my server appear to be closed (using an ...
  • 11
0 votes
0 answers
97 views

How to limit the number of port forwarding connections - ssh

I have a user on my linux server which is used for proxy. Currently the shell access and a lot of other features are disabled and the following command will be used on it: ssh proxy-user@server -D ...
  • 1
1 vote
2 answers
83 views

What did Oracle Cloud do, so I could sudo without password on SSH session?

I noticed that Oracle Cloud's pre-generated key pair could login into Linux server without password, and sudo without password, too. I can't reproduce this situation anywhere else I known. The ...
0 votes
0 answers
13 views

EC2 instance connect - impersonating anyone on the server by default

I am looking at ec2 instance connect and it seems it just allows you to impersonate any user that exists on host. How is that useful or secure? In what scenario would I want to allow this ...
  • 1,216
0 votes
1 answer
103 views

forward all traffic to another machine using reverse ssh

I have the following scenario Local Network | ...
0 votes
0 answers
41 views

openSSH service running but connection not working after an while

I have an openSSH server on windows 2022 running and its working overall so far. Its just like 1 time a week where the connection is not working anymore. At this point the service is still running and ...
0 votes
0 answers
49 views

Use OpenSSH to make a key exchange with NTRU Prime

I would like to make a key exchange for a symmetric key from the client to the server with the NTRU Prime algorithm (for test reasons). I already installed OpenSSH 9.1 on both sides and checked ...
  • 101
0 votes
0 answers
60 views

Unable to connect to gcp using ssh from command terminal (windows machine)

Initially ran the below command in terminal. gcloud compute ssh --project="pret-registry" --zone="us-east1-b" "pretlist-hw-server" --tunnel-through-iap --dry-run Output ...
0 votes
0 answers
15 views

how to use systemctl with pem file for remote commands

I am wondering an anyone tell me how to use a pem file with the systemctl command in order to be able to issue a remote command whilst logging in using the pem? I am running it on Ubuntu 22.04 ...
  • 1

1
2 3 4 5
175