Questions tagged [ssh]

GENERAL SSH SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. Secure Shell (SSH) is a cryptographic network protocol for secure data communication. Use this tag for programming questions related to Secure Shell. Common authentication and configuration problems are off-topic for Stack Overflow.

Filter by
Sorted by
Tagged with
1 vote
0 answers
25 views

How to connect atlas mongodb via ssh. uri is mongodb+srv

I am trying to connect mongodb which is on Atlas via ssh. Explanation: I have db hosted on Mongodb Atlas and i got uri like this mongodb+srv://user:[email protected]/ I have Ubuntu ...
Userak's user avatar
  • 13
0 votes
0 answers
34 views

Use Circle CI environment variable in string literal as part of a command parameter

I am new to Circle CI and all CI in general. I would like to call an rsync command with a custom port number using an envronment variable ($SSH_PORT) like so: - run: rsync -ru -e 'ssh -p ${SSH_PORT}' ~...
peterpie's user avatar
  • 103
0 votes
1 answer
49 views

Unexpected ambiguous redirect in bash script if connecting through ssh to server itself [duplicate]

I execute scripts, for example one of them is below. It work property as I expected. The file will send to remote PC and all output of copying, include possible error will store in file with extension ...
Evgeniy Chekushkin's user avatar
1 vote
0 answers
19 views

set ssh shell to pwsh in crypto/ssh session

When creating a ssh session using x/crypto/ssh, by default it creates this session and then use bash as the shell. How do I tell this session to use pwsh instead (we do have it available)? I've ...
mieliespoor's user avatar
-1 votes
1 answer
26 views

How do I set the CMake executable in VS Code?

I'm using the CMake Tools extension in VS Code to build and run a C++ project on WSL ssh remote. Where do I set the cmake executable to use? On Build, CMake Tools executes [proc] Executing command: /...
ellgee's user avatar
  • 1
-1 votes
0 answers
24 views

How to log docker into AWS ECS and use appleboy/ssh-action to deploy to docker

I have a git-action script which pulls code from a git repo, builds a docker image and pushes that image to an AWS repo. I previously pushed to an ECS task/service and that all worked fine. We're ...
Mike's user avatar
  • 2,168
0 votes
0 answers
23 views

Why won't SSH2 connect?

First of all please accept my apologies for my lack of understanding of the basics here. I am stuck with a problem and out of my depth. We had a PHP script that was written by a long-gone member of ...
Paul Walker's user avatar
0 votes
1 answer
20 views

How to use Kubernetes pod as jump server to connect to Postgres?

I have a pod in a K8s cluster that is allowed to connect into a PG cluster (outside K8s is firewalled). What is the best way to get this working? I can't seem to get a connection established. I've ...
user38643's user avatar
  • 351
1 vote
1 answer
22 views

Unable to connect to Ec2 using Robo 3T getting Failed to create SSH tunnel to

I am unable to connect ec2 instance from robo 3T while I'm able to connect ec2 server using Ubuntu cmd. I have tried all answer but still facing the issue. for reference i have attached 1) AWS ...
gaurav singh's user avatar
  • 1,386
0 votes
0 answers
11 views

Unable to perform rancher up command

we are trying to setup rancher. we are trying to start the rancher with a configuration file.but we are getting below error: Can't retrieve Docker Info: error during connect: Get \"http://%2Fvar%...
Sparc Splunk's user avatar
0 votes
0 answers
37 views

How to connect to MariaDB on AWS from C# over SSH

I am trying to connect to a MariaDB instance on AWS using C# over an SSH connection. I am able to get connected using MySQL workbench with the following configuration; MySQL Workbench Configuration: ...
mbcdev's user avatar
  • 1
0 votes
1 answer
17 views

Cloud Function Unable to SSH into Virtual Machine

My goal is to trigger an SSH login to my GCP instance and start my node server when a website is hit. My function crashes early in the process. POST500736 B336 msGoogle-Cloud-Functions https://...
SleepyWakes's user avatar
0 votes
0 answers
27 views

Rundeck Ansible - can't ssh

I'm trying out Rundeck in test environment (Rocky 9) and I can't get ssh connection to work correctly. Here's the output with the -vvvv flag: ansible-playbook [core 2.14.2] config file = /etc/...
pj43's user avatar
  • 43
-1 votes
0 answers
12 views

How to keep SSH sessions live between PC sleep and NIC changes? [closed]

There is a situation here. The laptop is on LAN SSH sessions are setup towards multiple targets. Then laptop is put to sleep disconnected from LAN and connect back from remote location via wifi and ...
rajeev's user avatar
  • 1,273
-1 votes
0 answers
57 views

How to make system("pscp name@host") work in C program?

I have this line in my code system("pscp name@host:/DIR.txt ./"); It gives ssh_init: Host does not exist error. However the exact same command pscp name@host:/DIR.txt ./ works perfectly in ...
DuckAndStranger's user avatar
0 votes
0 answers
49 views

Paramiko and ssh2-python3 not working as expected in high threads

I wanted to create a SSH Checker that checks for user passwords of some servers using Python. I'm aware that using it for nefarious tool is illegal but I'm creating it for research and learning ...
D3F4U1T's user avatar
  • 11
1 vote
1 answer
19 views

When I remove the port from the URL, photos, styles and scripts are not loaded

I have a Spring MVC project, I collected it in a docker container docker pull dockerHubAcc/project-admin:latest docker run -d --name project-admin-container -p 8088:443 --network someNetwork -v ...
Denis's user avatar
  • 13
0 votes
0 answers
6 views

Jupyter-notebook asks for token every time I move pages

I'm running a remote jupyter notebook ssh -L localhost:MYPORT:localhost:jupyterport me@theotherplace jupyter-notebook --no-browser --port=jupyterport I get what you'd expect: an address localhost:...
kyse_zenith's user avatar
0 votes
1 answer
9 views

Multiple ssh jump in iTerm2

I have few ssh host, like host_A, host_B and host_C. To connect to host_C, I have to ssh to host_A, then ssh to host_B (host_A and B are jump server), then finally ssh to host_C. Does iterm2 support ...
yu-hsuan Ho's user avatar
0 votes
0 answers
18 views

how to communicate to a reverse tunnel on the host machine from a docke container? [duplicate]

I have this setup: docker container (running caddy) -> ec2 host machine -> reverse tunnel -> local machine The idea is to roll my own ngrok. This was working with nginx running on the host ...
PGT's user avatar
  • 1,488
-1 votes
0 answers
12 views

SSH reverse tunneling to on prem server [closed]

I have an on prem server that is in the same network with 15 switches (from within the server i can ping them and snmp them) my intention is to set a reverse proxy from the on prem server to my cloud ...
naoru's user avatar
  • 2,147
0 votes
1 answer
21 views

Are there safe ways for ssh keys to be portable?

I want to make my dotfiles portable as many one has done. An usual way is creating a directory contains all my dotfiles and writing a script using "ln -s" command to create links at where ...
debuger's user avatar
0 votes
0 answers
23 views

Using paramiko ssh connections, specify local port for connection to remote MongoDB instance

I'm trying to connect to a MongoDB instance, that runs on a vm on a remote server. I'm able to connect to the vm on the remote server using paramiko to set up two nested ssh connections. I can execute ...
Seb's user avatar
  • 1
-1 votes
0 answers
11 views

ubuntu Establish k8s ,ssh try to connect, often disconnected Appear Completed [closed]

When connecting from a remote ssh, Completed often appears when running training. If you want to solve the problem, whether you delete the pod or create a pod, it cannot last long.[[enter image ...
吳季珊's user avatar
-1 votes
1 answer
17 views

Couldn't connect to Postgresql running on VPS through Dbeaver

I am new to postgresql and next js. I recently created a next js app with postgresql as backend. It is working fine in localhost. Then I bought a VPS, and installed postgres on it. It is working fine ...
Vishnu Thulasidoss's user avatar
0 votes
0 answers
13 views

Opening remote files with Visual Studio Code using SSH from console [duplicate]

Is it possible to open files on a remote host, which is accessible via SSH console, using Visual Studio Code, similar to the way we can do it on a local machine using the "code filename" ...
Denver Toha's user avatar
0 votes
0 answers
12 views

How to configure SSH password-free login from Mac OS to Windows? [closed]

I tried executing the following command on Mac OS: ssh-copy-id windows_username@windows_ip however, the following results were returned, and password-free login was not configured successfully: /usr/...
korangar leo's user avatar
0 votes
1 answer
11 views

Connect to Oracle database through SSH tunnel in DBeaver

I have access to a VM that runs scripts in batch files to first create SSH tunnel to a remote server, and then execute a number of SQL queries agains an oracle database I'm trying to gain access to ...
Henrik Poulsen's user avatar
-1 votes
0 answers
8 views

Opening a remote Python interpreter in PyCharm continuously iterates through the REMOTE HOST directory and then crashes

enter image description here Version: PyCharm 2021.2.3 (Professional Edition) But manually entering the address in the INTERPRETER input field is effective. Originally, opening it would work normally, ...
gang chan's user avatar
-1 votes
0 answers
18 views

root can log in to centOS use xshell ,but otherusers can't [closed]

Details are as follows: [root@hadoop102 hadoop]# ssh atguitu@hadoop103 atguitu@hadoop103's password: Permission denied, please try again. atguitu@hadoop103's password: I want log in centOS use ...
罗宗樾's user avatar
0 votes
0 answers
17 views

scp -O (legacy protocol) option per config file? [closed]

I basically have the same problem as described (and solved) here: subsystem request failed on channel 0 scp: Connection closed - Macbook This is: scp to some hosts which do not support sftp subsystem ...
Heiko Finzel's user avatar
0 votes
1 answer
21 views

Read private key from string using Paramiko

key_blob is not a string, not a StringIO(key_str), ... I figured it work when i pass msg = paramiko.message.Message() as a key_blob why does it want a msg there, any idea how to do this properly? ...
Jirafey's user avatar
  • 69
0 votes
0 answers
7 views

How to Open Private Webpages on a Bitnami Lightsail Instance via SSH

I have a Bitnami Lightsail instance on AWS with Debian OS, where I have successfully installed the Google Chrome browser. My goal is to create a web application similar to Facebook or WhatsApp Web, ...
androidXP's user avatar
  • 1,692
-2 votes
0 answers
258 views

SOLUTION: g[email protected]: Permission denied (publickey) in Windows [closed]

When you generate a new SSH key, windows will create the file outside of the /ssh folder by default, if you choose a name for your SSH key (they are supposed to be inside the /ssh folder). Solution1: ...
EXG13's user avatar
  • 1
1 vote
0 answers
24 views

Conflict between grequests / gevent and sshtunnel

I'm working on a web scraper that makes use of grequests, and then sshtunnel to store the data in a database. However importing grequests and sshtunnel causes Error reading SSH protocol banner cannot ...
David's user avatar
  • 31
0 votes
1 answer
39 views

Not able to connect Github repository with local git-bash on personal laptop

I am no longer able to connect to my github respository account using my personal laptop. It gives below error: $ git push -u origin main [email protected]: Permission denied (publickey). fatal: Could ...
nanosoft's user avatar
  • 2,933
0 votes
2 answers
44 views

Accessing and using ssh keys from host machine from docker container using ssh sockets in a secure way

I am trying to add possibility to use host machine ssh keys to fetch private repositories. However, I haven't been successful to do so in a secure manner. I don't want to copy ssh key's at build time, ...
Sebastian Słomka's user avatar
1 vote
1 answer
32 views

Can I use my "local" public key to log into ssh from one server to another (vServer) and how (with PHP)?

Since I am quite new to this I think i just missunderstand something but I can't find any working solution so far online. My setup is the following: I have my local Computer I work on, a shared server ...
Insomnia88's user avatar
-2 votes
0 answers
22 views

SSH into list of servers and if one server doesn't connect continue in Python

i have a list of server and i have to regularly check if an specific app is installed on the server or not and if not then install it, and i wrote this code but if one servers is not available or can ...
Jamie Karvan's user avatar
1 vote
0 answers
12 views

SSH agent forwarding can't find ssh-agent lock [closed]

I am trying to set up ssh agent forwarding for docker build. My build command: eval $(ssh-agent) && DOCKER_BUILDKIT=1 docker build --ssh default=${SSH_AUTH_SOCK} Executing gives the following ...
user22604548's user avatar
0 votes
1 answer
17 views

How do I grab a variable from the output of another command and leave the command running

This is my current code. It hang's after executing the ssh command. #!/bin/bash ssh_output=$(ssh -f -R 80:localhost.run:80 localhost.run 2>&1) line_23=$(echo "$ssh_output" | sed -n '...
Soggy Suck's user avatar
0 votes
0 answers
35 views

Can I send locally stored python code to be run/debugged in a remote machine?

I would like to ask if it exists any possibility to send locally stored Python code (being edited, for instance, in Visual Studio Code) to be run or debugged in a remote computer, without the ...
Marc's user avatar
  • 21
0 votes
0 answers
38 views

IntelliJ IDEA SSH Connection fails "Worker binary deploy failed"

I am trying to connect to my SSH Linux Server using SSH with private key in IntelliJ Idea. It runs to 100% when creating the worker binary and the exits with the following error: Worker binary deploy ...
codingbudgie's user avatar
-1 votes
0 answers
10 views

Getting this error while cloning some repositories from Jenkins "SSH could not read data: Error waiting on socket"

"SSH could not read data: Error waiting on socket" I tried restarting ssh but it was also no help. After restarting ssh it works for some time and fails again. Any way we fix this issue ...
Maverick's user avatar
1 vote
2 answers
35 views

How to store or save ssh client object in Django session?

Below functions, I am creating the ssh client and trying to save it to django session object. def create_ssh_client(host, user, password): client = SSHClient() client....
codemastermind's user avatar
-3 votes
0 answers
8 views

configure Splunk to capture and store records of client SSH login and logoff activities on aws

how to configure Splunk to capture and store records of client SSH login and logoff activities on aws how to configure Splunk to capture and store records of client SSH login and logoff activities on ...
oladeji clare's user avatar
0 votes
0 answers
22 views

Accessing Router via SSH.Net Library

I'm trying to create a C# program using SSH.Net lib to change some config in a SSH enabled cisco router. But I'm getting "Permission denied" Error while trying to establish connection. But I'...
Rishad C's user avatar
-1 votes
0 answers
12 views

Will jail-shell be supported on CentOS 9 Stream? [closed]

What is the status of jail-shell support on CentOS 9 Stream? we are trying to install the jail-shell in centos9 stream service via https://github.com/pymumu/jail-shell, but it was not working getting ...
Bharath Lamani's user avatar
0 votes
1 answer
41 views

interactive ssh session in go

ssh interactive session Hi everyone, I am learning golang for building cli tools and I just thought of replicating something I already have in bash for practice purpose. I want to open ssh interactive ...
Ashutosh Patole's user avatar
0 votes
0 answers
38 views

Ssh.Net.Execute() command is not returning

I am trying to reboot twice a yocto remote device from a C# application with Ssh.Net. The first time everything works well and I can see the remote device rebooting. In between there are various steps ...
KDE's user avatar
  • 31

1
2 3 4 5
601