Unanswered Questions

1,936 questions with no upvoted or accepted answers
9 votes
2 answers
18k views

Vagrant not ready for SSH error on VirtualBox and Laravel Homestead

Vagrant Version: 1.6.3 VirtualBox: 4.3.14 Ubuntu 14.04 LTS 64 Bit I have been on this for a pretty good while now and cannot figure this out. I have my public and private keys setup and they work. I ...
8 votes
3 answers
3k views

Redirect ssh trafic for one user through another port

Is it possible to have a configuration like this: A server which listen ssh connections on port 22 as usual For one user (let's say git) redirect all the traffic through another port (2222 for ...
7 votes
0 answers
3k views

Export Private ed25519 Key From GnuPG For Use in SSH

Is there a way to create an id_ed25519 (not id_ed25519.pub) file from an ed25519 keypair stored in GnuPG? I've started keeping track of my SSH keys in GPG: sec rsa3072 2017-12-12 [C] ...
7 votes
2 answers
5k views

How to prevent SSH freezes over an openvpn client to client connection

I have the exact same issue as the one described here, but I cannot request clarification from the author, since I am a new user and I cannot post a comment on that, so I am posting a new question (I ...
6 votes
0 answers
2k views

Ubuntu upgrade to 18.04 setrlimit, getrlimit & ssh_sandbox_child causing sshd to not work

I am performing a do-release-upgrade from a fresh install of Ubuntu 16.04 to 18.04 on a VM. After the upgrade I could no longer access via port 22. Trying again I installed drop bear prior to ...
6 votes
1 answer
1k views

nano very slow over ssh

Recently nano has started to be very slow when editing files over ssh. It's particularly slow when editing large files with syntax highlighting. It's most noticeable when yanking lines. There can ...
6 votes
1 answer
906 views

OpenNMS check if service is running on remote server using SSH

I have an OpenNMS system configured and up and running. I have a few Linux (debian) servers and I need to monitor if a specific service is running on them. This must be done using only ssh access. No ...
6 votes
2 answers
2k views

Virtual users in sshd from a postgres database

I have a Postgresql database full of user accounts, and i would like to allow these user to access a server through ssh, using only public keys authentification. So far, i have setup these parts on ...
5 votes
0 answers
2k views

getpeername failed: Bad file descriptor

I run script from an OracleLinux 8.4 VM (with NatNetwork configured on VirtualBox) on my Windows 10 pc, to remote hosts using jump host. My PC can't connect directly to remote hosts, but need to pass ...
5 votes
0 answers
4k views

GitHub SSH action failing: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

I have recently rented a VPS running CentOS 8. I want to make countinuous deployment from one of my repos, so that when I push to main the repo is updated. I followed this tutorial on a fresh CentOS ...
5 votes
0 answers
1k views

Auditd in a PCI-DSS-compliant Linux cluster

I'm familiar with some of the more common ways of configuring a Linux server to be compliant with PCI-DSS 3.2, at least to the requirements of SAQ A. A common concern is requirement 8.5 which ...
5 votes
1 answer
1k views

Send tmux command from remote inside ssh session to local instance

The goal is to send tmux command to the local running tmux from the remote server. not to run to different instances of tmux. Inside tmux we ssh to a server that doesn't run tmux local>tmux send-...
4 votes
2 answers
2k views

How to ssh to a server via bastion(proxy) with key from the bastion(proxy) NOT origin

So I'm essentially trying to do this: ssh [email protected] -t ssh bob2@test-vm the above works fine if I just put it into the terminal, however I am having a hard time trying to replicate it via ...
4 votes
0 answers
1k views

How to use Windows 10 OpenSSH ssh-agent service with Cygwin?

I'm using the Visual Studio Code Remote - SSH extension on a Windows 10 laptop to access a bunch of Linux development servers. I followed these instructions to set up the Windows built-in ssh-agent ...
4 votes
1 answer
2k views

ssh PIV error "sign_and_send_pubkey: signing failed for RSA "Public key for Digital Signature": agent refused operation"

I had to recently rebuild my laptop. In the process, I switched from Fedora31 to Kubuntu 20.04 LTS. Everything in the switch went without a hitch, except for one thing. Where I work we use 2FA for ...
4 votes
1 answer
1k views

Echo something before SSH prompt with pam_exec

I want to echo some text from a pam_exec script after a successful SSH login (pubkey) but before the script itself exits (2FA purposes). Whatever the script prints during its execution is displayed ...
4 votes
0 answers
5k views

Match address rule in sshd_config, , difference between localhost, 127.0.0.1 and [::1]

I would like to understand why these three rules in sshd_config behave differently : Match host localhost PasswordAuthentication yes Match address 127.0.0.1 PasswordAuthentication yes Match ...
4 votes
0 answers
4k views

AWS: ssh_exchange_identification: read: Connection reset by peer

I am facing "ssh_exchange_identification: read: Connection reset by peer" error. I am not able to ssh my instance. Any help is highly appreciated. Thank you. Below is the debug information ssh -i ~/....
4 votes
0 answers
304 views

Delegate SSH USERAUTH traffic based on user name

I want to do delegate pubkey-based authentication for a given user to a different SSH server, without modifying client configuration but allowing modifications to server software. There are several ...
4 votes
1 answer
3k views

Configure SFTP with OpenSSH and an AWS S3 Bucket mounted via S3FS on Amazon EC2

How do I allow multiple SFTP Users with S3FS and OpenSSH? Everything works, except SFTP Users don't have permission to write to their Chrooted Home Directory: remote open("/some_file"): Permission ...
4 votes
0 answers
4k views

Ansible hangs when copying from a remote host to remote hosts

I wanted to copy a file generated on hostA to production severs and tried the task below but Ansible hangs. I set ssh_args=-i ForwardAgent=yes as is suggested in the previous post but this has not ...
4 votes
0 answers
973 views

Openshift SSH permission denied through corporate proxy

am trying to connect local->cntlm->company proxy->rhcloud host. I have the keys uploaded to rhcloud and GitHub. With the current configuration with corkscrew i am able to connect to git via ssh. ...
4 votes
0 answers
2k views

GSSAPITrustDns option missing from OpenSSH-6.7

I need to use the GSSAPITrustDns option to connect to a round robin service using Kerberos authentication. This works correctly using OpenSSH 5.3 and 6.6.1p1 on a selection of machines. I have an Arch ...
4 votes
1 answer
2k views

Installing openssh-server on Debian 10 with libc6 issues

I'm trying to install openssh-server. However, I keep getting this error: The following packages have unmet dependencies: libc6 : Breaks: openssh-server (< 1:8.1p1-5) but 1:7.9p1-10+deb10u2 is to ...
4 votes
1 answer
15k views

Get list of forwarded ports

My system has several port forwarding settings active. Among others, I have some Vagrant machines with port-forwarding configured: Vagrant.configure("2") do |config| config.vm.network "...
3 votes
0 answers
9k views

What is the meaning of this line from ssh output: 'Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling'?

Everything works, ssh connects using private-public ssh key pair. Just few things in ssh -v Ora2 output isn't clear for me. This is complete ssh -v Ora2 output: PS C:\Users\roeslermichal> ssh -v ...
3 votes
0 answers
352 views

Unable to su or ssh as anyone but root on CentOS 7

I seem to be unable to ssh or su as a local user on my CentOS 7 machine as of today. $ adduser ndejay $ passwd ndejay Changing password for user ndejay. New password: Retype new password: $ su ndejay ...
3 votes
0 answers
215 views

Server become unreachable and ask for a htaccess

I'm currently running an Ubuntu 20.04 server on a Gigabyte BRIX (GB-BACE-3000), it works well except the network since few days. After a while (few hours after powering up) I can't reach the server ...
3 votes
0 answers
1k views

What is the meaning of message debug2: channel 0: window 1998646 sent adjust 98506 in OpenSSH?

I get some kind of weird problems with a server randomly closes the connection. I am on client side, so fixing the server is not really my problem, but I see some kind of odd TCP communication. It ...
3 votes
0 answers
185 views

SSH tunnel reconnecting after WAN change or server drop

I am fighting with autoSSH configuration. My setup VPS as a public contact point, clients will access the VPS IP to get to the server My home server running the service. This machine has dualwan ...
3 votes
0 answers
646 views

SSH Shell not popping even though the debug log shows it connected

I try to log in to my server using the standard ssh user@host command, and although it technically connects, I'm unable to get a shell. I have used this server for months and I don't understand what's ...
3 votes
0 answers
870 views

sshd on Fedora: Recent changes to UsePAM break existing security; PermitRootPassword & UsePAM no not honored, minimal PAM config doesn't work either

I did upgrade on a Fedora Server and was SHOCKED to discover thousands of root attacks on my publicly facing servers and I can't seem to figure out how to stop them! To be clear; It IS possible to log ...
3 votes
0 answers
2k views

SSH login not working with Kerberos

I am trying to perform SSH login using Kerberos authentication. Instead of Kerberos, password is prompted for login. There are three computers : client, kdcserver and service (SSHD server). Client is ...
3 votes
1 answer
3k views

Is there a built-in way to proxy SSH through socks5?

I have a Socks5 proxy that uses username/password authentication. I can use it with SSH using NCAT in the ProxyCommand: ssh -o ProxyCommand="ncat --proxy-type socks5 --proxy-auth username:...
3 votes
0 answers
414 views

SSH fails: "PTY allocation request failed", shell "not found"

I have GitLab CE running in Docker. After upgrading GitLab CE to version 13.5.3, its SSH stopped working. Everything else seems to be working fine. Executing ssh git@<myhost> results in PTY ...
3 votes
0 answers
3k views

openssh sftp on windows log sftp to file

I have activated the openssh server on a windows server 2019. SFTP works fine, but I can't get it to log to a file, I activated file logging in sshd_config with this: # Logging SyslogFacility LOCAL0 ...
3 votes
0 answers
1k views

SSH freezes after couple of lines printing

I am having this weird issue with a server whenever I try to open htop over ssh it hangs, ls works but ls -l hangs after couple of line if I execute history it hangs after printing 50+ line. But mosh ...
3 votes
0 answers
139 views

Stay Logged Into Headless Server

I have a headless Linux server running some services without root access (username leo), via systemd --user. I ssh into my server (as leo), start the services, and then exit. The problem is, systemd ...
3 votes
0 answers
1k views

AutoSSH not connecting to remote server, but SSH works fine

Trying to use autossh to create a tunnel on my remote server that I can use. I can create the tunnel with normal SSH but trying to use autossh keeps failing. I want to setup it up with autossh ...
3 votes
0 answers
471 views

How do I SSH into a Windows 10 Powershell session with colors and tab completion configured from a Linux terminal?

The default on Windows 10 is to ssh into cmd.exe . If you type powershell.exe from there you get highlighting and tab completion. However, it is kind of flaky and laggy sometimes. If you ssh directly ...
3 votes
3 answers
7k views

"ssh_exchange_identification: read: Connection reset by peer" error trying to connect to OpenSSH on Windows machine

I'm trying to set up an SSH server on my Windows2k8 server. I used the instructions found here. Here's the verbose output: steves-air:~ steve$ ssh ste[email protected] -v OpenSSH_7.9p1, LibreSSL 2.7.3 ...
3 votes
0 answers
4k views

SSH server connects, but does not open a shell session

I have a server, where I can login using SSH, but do not get a shell (anymore). What can I do to login to a minimal shell to debug the issue? Here is the log of ssh -vvvv debug1: ...
3 votes
1 answer
4k views

Dockerfile cloning from private gitlab with ssh and deploy key

(EDIT) This problem was happening also from my laptop using root and my user, which could get the greeting when trying to ssh with git user. Then tried the ansible playbook and it raised errors for ...
3 votes
0 answers
6k views

Centos 7 SSSD based user access stops working after AD password change

We use SSSD to provide AD authentication, and kerberos TGT acquisition, on Centos 7.3 build 1611. This works correctly for 99% of users most of the time, but we've hit an issue where post-password ...
3 votes
0 answers
914 views

Unison sync of sshfs mount - what can go wrong if the connection breaks?

I am syncing a local directory (say "/local") with a cloud storage server using Unison. The cloud storage is mounted to, say, "/mnt" via sshfs (with no-cache option), and I sync the two directories /...
3 votes
0 answers
2k views

Can't connect to remote host via ssh tunnel on port 5432

I have PostgreSQL installed on a remote host running Debian 8. I must use a ssh tunnel via a proxy server to connect to this remote. I have no problems: in connecting via ssh on port 22, in running ...
3 votes
0 answers
2k views

SFTP reverse proxy

Serverfaulters. Short: I'd like to publish several SFTP servers through one server (reverse proxy/relay). How could I do that? Long: there are three components: -...
3 votes
0 answers
8k views

SSH fork of unprivileged child failed on connection

we have some problem when we try to make an ssh connection to our server. When we connect with user X (ssh x@serverIP) we receive these errors on console: Connection to serverIP closed by remote ...
3 votes
0 answers
1k views

Qemu packer ssh failed connection reset by peer

I am trying to get packer to create a qemu/kvm image. I feel like it should be fairly straightforward but my build keeps failing on ssh. Here are the relevant files template.json: { "builders": [ { ...
3 votes
0 answers
555 views

RDP Connection Times out Only When Connected over SSH Tunnel

I have an interesting issue. let me describe my setup: I have a server at home that serves as my Virtual Machine Host. All of the computers here are VM Computers, I don't think that makes a ...

15 30 50 per page
1
2 3 4 5
39