30,047 questions
Tooling
0
votes
5
replies
26
views
How to forward SSH for specific user to other server
Say you have an SSH server exposed to the outer web and a git server (or similar server that uses an SSH-based service) that is not publicly exposed but is locally addressable to the SSH server.
Your ...
0
votes
0
answers
30
views
VS Code Remote-SSH and Cursor stuck at "Checking .log and .pid"
I am experiencing a persistent hang when trying to connect to a specific remote server using VS Code (v1.108) and Cursor via Remote-SSH. The connection process indefinitely stalls at the "...
-4
votes
0
answers
48
views
systemd ssh service in Debian: Why naming twice the same service? [closed]
it looks like the original name is ssh:
#systemctl list-units --all | grep 'ssh\|sshd' | grep .service
ssh.service loaded active running OpenBSD Secure Shell server
[..]
this is ...
0
votes
0
answers
83
views
PHP exec() hangs during SSH command execution on RHEL 9 and returns no output or status
I am executing an SSH command on a remote host using PHP’s exec() function inside a foreach loop. Based on a condition, the command runs only during the 4th and 6th iterations. The same SSH command is ...
Advice
0
votes
1
replies
16
views
Do Github rules allow one to connect via SSH to their continuous integration machines?
I was wondering if Github rules allow me to connect via a reverse SSH to their continuos integration virtual machines and obtain a shell prompt in order to for example debug a failing release ...
0
votes
0
answers
106
views
Ubuntu VS Code Remote ssh connection failed
Today I used the VS Code plugin Remote-ssh to connect to the server in Ubuntu 22.04. However, it failed after I prompted the password and clicked Enter.
I have tried:
changing the setting of Remote-...
0
votes
1
answer
113
views
"...SSH Permission denied (publickey,password,keyboard-interactive)" when running python script as service on raspi [closed]
I have a python script that runs as a service on raspi, the script executes a bash script which then connects to a windows pc via SSH using a key.
I have successfully use the same code to connect to ...
1
vote
1
answer
72
views
SSH-bound Go CLI Daemon – SSH Connects Successfully, but No Input Accepted
I'm building a custom CLI daemon in Go for Ubuntu.
When I run the CLI locally (without SSH), everything works correctly — for example:
admin@admin> whoami
responds as expected.
However, after ...
2
votes
1
answer
159
views
Using `git lfs` with SSH on GitHub gets stuck at `git-lfs-transfer`
I noticed that git lfs operations (push or pull but especially push) with GitHub keep getting stuck running git-lfs-transfer. This is slowing down all of my git operations which call git lfs via hooks....
1
vote
0
answers
145
views
Python SSH automation. Child process communication issues with /dev/tty
I am trying to automate SSH authentication on a jump server (bastion host) that requires both password and OTP. The script needs to:
Connect to SSH with authentication
Hand over control to the user ...
2
votes
1
answer
103
views
VsCode SSH Fails to Connect to CentOS: Failed to parse remote port from server output
I am consistently failing to connect to my CentOS server using the VS Code Remote - SSH extension. But I can connect and work successfully using a standard SSH client. The client PC and the server are ...
1
vote
1
answer
55
views
PythonAnywhere SSH working in CMD but not in Notebook
I have a paid account with PythonAnywhere, with MySQL DB. I am able to connect to DB using DBeaver and am also able to SSH using command prompt (ssh [email protected]).
However when I ...
1
vote
2
answers
87
views
PowerShell/ADO Pipeline: SSH Fails with key file in .ssh folder (space in path), fingerprint not accepted
I'm working on an Azure DevOps pipeline Classic UI that deploys a software package to multiple Windows devices registered in Deployment Groups.
The flow:
Copying SSH Keys:
We copy a private key file ...
0
votes
1
answer
253
views
ArgoCD “ssh: handshake failed... connection reset by peer” when connecting to GitLab via SSH
I’m trying to connect ArgoCD to a private GitLab repository using SSH.
I created a key pair and added the public key to GitLab.
Then I configured the private key and repository URL ([email protected]....
2
votes
1
answer
59
views
Closing file after SFTP upload still makes client retry the same upload in `close` sftp_response from paramiko
I run a custom SFTP Server using Paramiko that receives video files from NVR cameras and uploads it to a cloud storage. The flow is simple: The client (NVR) connects and authenticates, we write the ...
1
vote
1
answer
109
views
Remote Command Execution and Cleanup
Goal
Execute long running command remotely with the following capabilities:
We can kill the task with its PID
If task completes, its exit code should be written to file
Task should be detached from ...
3
votes
0
answers
77
views
How to use an SSH key with a passphrase for credentials in LibGit2Sharp v0.31.0?
I am using the LibGit2Sharp v0.31.0 release and trying to perform Git operations (like clone or fetch) over the SSH protocol.
According to the release information, SSH is now supported through libgit2'...
0
votes
0
answers
71
views
Backspace/delete key is not working, while working with ssh terminal
Recently, I worked on an SSH terminal built with xTerm and dartssh2. In this project, I integrated a hidden TextField with several event listeners that directly send input to the terminal. Everything ...
2
votes
1
answer
111
views
git push and clone hang indefinitely using ssh
I am using git to host a LaTeX paper I'm writing on both my desktop and laptop. However, it has recently stopped working on the latter. One morning, I was able to clone and push over SSH just fine, ...
0
votes
0
answers
110
views
Pass SSH socket to Podman Quadlet unit
Socket
For a backup service, I am trying to pass a SSH socket into a Podman container that is controlled by a Quadlet unit file. The socket is created by keychain in .bashrc:
# .bashrc
/usr/bin/...
1
vote
1
answer
53
views
Weird things when executing multiple ssh command in gitlab CI script
I have a gitlab CI pipeline defined in .gitlab-ci.yml. One job is to deploy and start a spring boot application to 2 different machines. I do it by invoking a bash script twice with different machine ...
1
vote
1
answer
85
views
Nil golang ssh session for valid address
I'm trying to connect through ssh to a hacking CTF server. I can do it with ssh so can I with python pwn tools but I struggle to do it with go. When I try to create a session, my code complains with ...
0
votes
0
answers
135
views
Apache MINA SSH client in Shell mode - non-printable /escape characters polluting stream
I have some Java code that uses the Apache MINA SSH client to connect to a Windows server running OpenSSH.
The objective is to get an interactive prompt (One that I can issue a command, get a response,...
0
votes
0
answers
30
views
How to use java command via Kudu in Azure App Service
I have Azure App deployed in Azure App Service.
I can login to App Sevice server via SSH App or SSH Kudu:
When I login via SSH (App) I can run script by ./script.sh which is:
java -Dspring.profiles....
0
votes
0
answers
38
views
How would you determine if you're running Windows Terminal in an SSH session?
Aside from SendEnv and AcceptEnv passing the WT_PROFILE_ID environment variable via SSH configuration, is there another way to some how query the terminal to determine if it is Windows terminal. ...
0
votes
0
answers
67
views
VS Code Remote-SSH disconnects when opening folder on Azure VM
I can SSH into my Azure VM from the Mac terminal without any issues, but when I try to use VS Code Remote-SSH, the connection fails as soon as I open a folder.
Environment:
Local machine: macOS
VS ...
0
votes
0
answers
48
views
How to properly resolve include paths in VS Code
I have a workspace for cross-compiling an application on a remote linux server. I recently moved to VS Code, and mapped VS Code to the workspace via ssh.
In one of my files, I have the following:
#...
1
vote
0
answers
119
views
How to make a ssh connection from another ssh connected machine
I have 3 linux machines (hostA, hostB, hostC), from hostA I will remote login into hostB via ssh and transfer some file/directory from hostA to hostB. Once transfer is done from hostA to hostB, I ...
2
votes
2
answers
170
views
git clone failed because of authentication failed inside a docker
I'm trying to clone a project from gitlab in a docker but having authentication failure issue.
Outside of docker, it works well to checkout the project using git clone command.
$ git clone "git ...
0
votes
1
answer
66
views
Golang crypto ssh package: attempted methods [none]
I am trying to ssh into Arista EOS Switch by using golang package: golang.org/x/crypto/ssh, the idea is to ssh into switch, execute some commands and get output.
here is my code:
func ExecuteCommands(...
2
votes
1
answer
132
views
Why does ReadFile on stdin with size at least 64kiB hang under ssh?
Question
I'm trying to understand the following symptoms:
I have a C++ program that uses Windows
ReadFile
to read (and discard) all of stdin.
The ReadFile call specifies a read size of 0x10000 (...
2
votes
1
answer
456
views
How to allow GitHub Actions SSH access to a VM with restricted firewall on port 22?
I'm trying to set up automatic CI/CD deployment of my frontend via GitHub Actions using SSH to connect to a Hetzner cloud VM (Shared vCPU).
Everything works except for one issue related to the ...
0
votes
0
answers
43
views
How to have AWS EKS pod communiate out to raspberry pies securely?
I have a scenario where I have AWS EKS hosted in one region in AWS (us-east-2). I have a pod that communicates out to raspberry pis outside via a VPN. The VPN is an OpenVPN server hosted on an EC2 ...
0
votes
1
answer
87
views
git clone via SSH in Windows without prompt to custom git server
I have access to a custom git server as user. I can't modify SSH accepted keys of the server.
The clones are done like this:
git clone USERNAME@HOSTNAME:REPO_NAME
But they ask for a password prompt ...
0
votes
0
answers
207
views
Can't ssh to remote Ubuntu 24.04 Server via terminal after using VS-Code Remote-SSH to login and how to stop loosing remote connection on VS-Code?
First time using Microsoft Remote-SSH extension in VS-Code on a Ubuntu 24.04 machine to ssh login a remote Ubuntu 24.04 Server. After a login, the remote ssh connection then died within a minute. AI-...
0
votes
0
answers
70
views
executing a ssh command via the ruby system call to make a WordPress blog post using the wp-cli facility
ruby 2.6.6
ubuntu 24.04
wp-cli 2.11
Attempting to post a blog entry using the wp-cli facility via ssh called from ruby.
Example call:
system("ssh -p 3875 [email protected] \"cd public_html; ...
1
vote
1
answer
45
views
Github Actions secret name as a parameter [duplicate]
I want to create a workflow that can be manually triggered. It has multiple ssh private keys stored as secrets, and the user could choose any of them by passing their name into one of the workflow's ...
1
vote
1
answer
352
views
podman build from private repository with ssh
I would like to build an image directly from a private gitlab repository without cloning the this repository first. I found out that this is possible with:
podman build -t mytag https://gitlab.example....
0
votes
1
answer
86
views
How to make VS Code recognize the environment variables of the SSH remote Windows host?
I have two machines:
A host machine (Windows 11) running VS Code
A Hyper-V guest VM (Windows 11): OpenSSH Server installed, running VS Code Server with a Python project pythonWebApp
I'd like to ssh ...
-1
votes
1
answer
58
views
Not able to connect to remote linux server using VScode
When I click on Connect to Remote Server in VScode, it throws this error:
wget download failed vscode-cli-<commit>.tar.gz: Disk quota exceeded
scp: dest open "...": Failure
0
votes
0
answers
163
views
Automatically updating VS Code remote server behind a firewall
My company manages my Windows machine where VS Code is installed and they periodically update the version every few months. I develop against a remote Linux machine using the remote ssh extension, and ...
0
votes
0
answers
67
views
Cause of new intermittent connection issues when managing a remote Gentoo server? MSG_DATA_RECV_ERR
I have a personal web server that I use for file shares, which has been working fine for years. It's running a current Gentoo build. I started getting problems, but can't for the life of me figure out ...
0
votes
1
answer
89
views
Bitbucket pipeline Permission denied (publickey). Digital ocean Ubuntu 22.04
I am migrating on a new Ubuntu Digital ocean droplet. I had one bought a few years ago, but since it is old it is using Ubuntu 18.04.
Due to compatibility issues I decided to buy a new droplet which ...
0
votes
1
answer
71
views
Connecting to Vertica DB via SSH Tunnel with PEM file using Java automation
I'm trying to connect to a remote Vertica DB using Java and connecting to it involves an SSH tunnel with the addition of a PEM file as a Public Key.
However, after creating a port forwarding session ...
0
votes
1
answer
111
views
Is there a way to force ansible to use ssh key for jumphost while password to target host?
My scenario is like this
A(ansible host) B(jumphost, ssh key/yubikey needed) C(target host, password only)
What I am trying tto do is from A executing playbook through B(requires yubikey also) into C. ...
3
votes
3
answers
1k
views
I'm getting a weird bug when I try to use Vscode to SSH into a server
I'm getting a weird bug when I try to use Vscode to SSH into a server. I'm using VSCode version 1.101.0. At the end of the post is the entire log that I'm getting when I attempt to SSH into the server,...
2
votes
1
answer
97
views
How do I manage an SSHClient that I have an open connection in Dart
I am currently trying to open a persistent SSH connection to my FTP server, but I do not know how to save the SSHClient, that I can savely wait for the connection to be established.
Here ist my code ...
3
votes
1
answer
127
views
How can I run multiple commands on SSH in one go with Paramiko in Python?
I've got some code that runs through a list of devices, connects to them via SSH and queries some parameters. The basic code looks like this:
ssh = paramiko.SSHClient()
ssh.connect(ip_address, ...
0
votes
0
answers
74
views
JSchException: Authentication failure [duplicate]
I am getting an error when trying to establish connection to a remote server using jcraft.
com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:519)
...
0
votes
0
answers
45
views
lftp hanging on Fedora 41
I'm running the following command to upload packages to Sourceforge:
lftp -u "$SF_SFTP_USER","$SF_SFTP_PASS" sftp://frs.sourceforge.net <<EOF
set sftp:auto-confirm ...