Questions tagged [ssh]

Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.

3,693 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
2k views

Windows 10 SSH server "permission denied" on login after changing computer name

I am running an SSH server on Windows 10, the server was working well until I changed the computer name. Since then I cannot login through SSH. I tried deleting the Users\username\.ssh folder on both ...
gilad's user avatar
  • 121
2 votes
0 answers
704 views

How to kill remote command — run via SSH — when SSH is terminated?

I am trying to run an infinite loop via SSH, e.g. ssh remote_server "loop" However, the process loop persists when I exit SSH with Ctrl+C. Is there any way I can cause loop to terminate ...
Tim Mak's user avatar
  • 141
2 votes
0 answers
441 views

SSH over VPN (openconnect) in one line

I have succeeded the following commands: sudo openconnect hoge.com ssh -p <PORT> user@IP But I cannot execute these commands with one line. ssh -t -o ProxyCommand='echo "PASS" | sudo ...
user36327's user avatar
2 votes
0 answers
551 views

ssh localhost: Permission denied (publickey) Ubuntu on WSL2

Previously asked this question on askubuntu.com and unix.stack but I'm getting quite desperate so I'm asking here again: I'm having trouble "sshing" to localhost and getting a permission ...
Shervin Rad's user avatar
2 votes
0 answers
276 views

Detect SFTP Login And Perform A Web Request

I am running a SFTP server on Linux/Debian. What I want is to detect when a user connects to the Server and then execute a bash script on the server in which I perform a web request. In this web ...
sposti88's user avatar
2 votes
0 answers
533 views

How to setup a VPN Server on a VPS for SSH?

I have a Ubuntu 20.04 machine behind a router. I live in an apartment building which provides its own Internet connection. My router reports a different IP address than provided by whatismyip.com. Due ...
saad's user avatar
  • 153
2 votes
0 answers
766 views

Cannot sshfs to server over proxycommand on Windows

I'm trying to connect through sshfs-win to mount a drive over a jumphost. I can normally connect through ssh but when invoked over sshfs-win it fails. Also, I can normally mount the jumphost, but not ...
ditoslav's user avatar
  • 133
2 votes
0 answers
4k views

Application on remote computer * requested access to the x server

Using MobaXtrem to connect from my windows machine to an Ubuntu v16 remote server. I sometimes leave the connection active in the background while I'm away or working on other stuff. For the second ...
Liranko's user avatar
  • 21
2 votes
0 answers
551 views

tmux client-detached hook does not execute when terminal emulator closes

I have the following in my .tmux.conf file (and nothing else). set-hook -g 'client-detached' 'run "echo DETACH >> .tmux.log"' set-hook -g 'client-attached' 'run "echo ATTACH >&...
Ashton Snelgrove's user avatar
2 votes
0 answers
353 views

Samba CIFS mount only works after SSH connection to samba server

CIFS mount of my remote samba share for some reason unmounts from client in the middle of nowhere and doesn't mount back (log below) until I do an SSH connection from client to server, which, for some ...
netmvze's user avatar
  • 21
2 votes
0 answers
2k views

Why is ssh sometimes blocked by TP-Link WR841N?

I have a TP-Link WR841N wireless router. When I connect both my MacBook Pro and a Raspberry Pi to the router over WiFi, I typically cannot ssh from the MacBook Pro to the Raspberry Pi: Davids-...
davidgyoung's user avatar
2 votes
0 answers
2k views

sshd "received disconnect: disconnected by user"

I can successfully login to the SFTP server (uses SFTP chrooting), but every time I issue ls, the connection will close: I mounted /logs/xxx to /sftp/user/xxx and am unsure if the binding I did has ...
jan04's user avatar
  • 21
2 votes
0 answers
314 views

How to run a browser over ssh remotely on the remote network

I need to access a webpage on a remote network through a headless machine I can ssh into (with sudo privileges). I can't use a direct ssh tunnel with forwarding connections (-L8080:remote.ip:80 for ...
Dolf Andringa's user avatar
2 votes
1 answer
3k views

How to limit the access of a local windows user to only a specific folder?

I've set up an OpenSSH SFTP connection with the help of documentation and WinSCP and want a colleague to be able to upload files to my computer using this SFTP connection. I've created a new local ...
Anton's user avatar
  • 121
2 votes
2 answers
7k views

Run GUI application via OpenSSH on Windows 10

I would like to launch a GUI application on a Windows 10 Desktop machine via the built-in OpenSSH server. The issue is that it doesn't seem to render the GUI in the correct user session? The ...
timonsku's user avatar
  • 658
2 votes
0 answers
4k views

sshd: Connection reset by IP [preauth]

Initial Post here (closed as not relevant to ServerFault) I have a raspberry pi with only Key based authentication enabled. When I try to ssh to it using the local IP, it works. But when I try to ...
Kunal's user avatar
  • 21
2 votes
1 answer
2k views

Setting in Stop via TCSAFLUSH for stdin failed! - tcsetattr (5: Input/output error)

I login to some Ubuntu servers via ssh to run installation script. The script contains some lines as below: echo "deb http://nginx.org/packages/mainline/ubuntu/ bionic nginx" >> /etc/...
kietheros's user avatar
  • 143
2 votes
0 answers
3k views

Windows 10 terminal: Is it possible to save ssh password?

My question is about the new windows 10 terminal At work, I SSH to several servers daily, centos 6 and centos 7, I need to save ssh password, like mobaxterm I can't create ssh keys, because I have far ...
Lynob's user avatar
  • 5,380
2 votes
1 answer
731 views

Alias ssh to have a default -F flag

I would like to "alias" ssh in my PowerShell profile to: ssh -F $HOME\.ssh\config I have a custom $HOME environment, but the Win32 OpenSSH implementation uses %USERPROFILE% which cannot be ...
Holt's user avatar
  • 181
2 votes
2 answers
8k views

Windows SSH: Can't ssh into ec2 account: Permissions for 'key.pem' are too open. Can't delete permissions for "ALL APPLICATION PACKAGES"

The IP in the following picture is replaced with xs for security purposes ssh -i key.pem [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: ...
Brian Beuerman's user avatar
2 votes
0 answers
185 views

Cannot connect through RDP while session is in progress

I've recently ran into: when trying to log into a (win 2016)server but I know there is no one else logged in; the only possibility being (I'm guessing) that I installed a virtual machine on vbox ...
Kev's user avatar
  • 35
2 votes
0 answers
288 views

Can't use XDebug in PHPStorm via a local PuTTY SSH proxy + tunnel even though XDebug log says a connection was successful

Here's a confusing one. I need to use XDebug for a remotely-hosted PHP project. The remote server is firewalled and only accepts connections from a second remote server, so in order to connect to ...
WackGet's user avatar
  • 767
2 votes
0 answers
371 views

How to transfer files between two hosts through a bastion using netcat and pigz

I have to regularly transfer the contents of folders containing a lot of small files with a volume of around 10GB from one server to another. Before I used the command bellow which did the job very ...
Abe Rad's user avatar
  • 21
2 votes
0 answers
1k views

Notepad++ NppFTP Connecting [SFTP] Connection failed : Socket error: disconnected

I connect to the server with ssh turnnel. ssh middleHost -L 12345:desHost:22 The server is FreeBSD.(OpenSSH_6.2p2, OpenSSL 0.9.8y) It work successfully when using sftp in terminal sftp -oPort=...
John's user avatar
  • 21
2 votes
0 answers
757 views

No matching fbConfigs or visuals found, while openning Qt Creator over SSH

I have Qt 5.12.7 64 installed on Debian 9.12, these are running on vmware on Windows host. Then I use macOS and ssh into debian. And I tried to open Qt Creator and got: $ ~/Qt5.12.7/Tools/QtCreator/...
KcFnMi's user avatar
  • 604
2 votes
0 answers
2k views

Vim text messed up over ssh on Windows remote host regardless of terminal, works fine on Linux remote host

vim works fine on the first invocation on a remote Windows host, but further use leads to my terminal getting messed up. :redraw! and reset do not help: Using the same local terminal, vim works fine ...
afarah's user avatar
  • 121
2 votes
0 answers
271 views

Ssh- Connection(ssh) to user through one machine only prompts for ssh-password, but through all other machine, it asks for user password

Edit 01/31/2020: I tried to run ``` sshd -t ```` in two different machines from my side, and I got this: mavridks@rh04359:~$ sshd -t /etc/ssh/sshd_config line 16: Deprecated option ...
Constantine Black's user avatar
2 votes
0 answers
91 views

Reverse ssh to Cloud server from Raspberry

I have a use case where I have 6 of my raspberry pi sitting behind a private firewall and I need access to them from my local systems. So I came up with a architecture shown below From my rpi reverse ...
Lokesh Waran's user avatar
2 votes
1 answer
2k views

SSH Key auth when home directory is symbolic link

The home directories on a server are mounted at /mnt/Storage/Home, and I have a symlink at /srv/Home pointing to that directory. I can log into accounts on it and the home directory works fine, but I ...
cclloyd's user avatar
  • 752
2 votes
1 answer
2k views

CConn: unable connect to socket: Connection refused (111)

I have a Raspberry Pi4 with Ubuntu 19.10 installed and am using it headless via ssh from a Linux laptop. I want access to a vncserver and have installed tightvncserver following this guide I have ...
makem's user avatar
  • 21
2 votes
0 answers
251 views

How to Kill SSH Connection When Network Disconnects

I know this is an odd request, but we've been asked to destroy an existing SSH connection as soon as a network disconnect is detected, e.g., if the network cable is unplugged. SSH normally works hard ...
SixDegrees's user avatar
2 votes
0 answers
1k views

Reverse SSH tunnel connection refused

I am trying to connect to a server behind NAT so I can ssh into the dev-server from the remote-server. I have set up a reverse ssh tunnel from the dev-server to the remote-server as follows, in order ...
willyab's user avatar
  • 15
2 votes
1 answer
428 views

vnc doesn't work (connection successful, but I can't see any graphics)

I'm trying to use VNC on a remote server of mine. My local machine and the remote machine are both running Ubuntu 18.04. There are no errors produced by any of the installation commands, but I just ...
Taylor's user avatar
  • 121
2 votes
0 answers
458 views

disappearing .ssh directory on Mac OS X

I am experiencing a very strange problem with my desktop iMac running Mac OS X Mojave 10.14.6. Every night, after midnight sometime: the Remote Login item in the Sharing control panel gets unchecked ...
Robert Harper's user avatar
2 votes
0 answers
791 views

Zerotier ssh fails from one particular computer (works fine from other devices)

I have a Zerotier vpn set up so that I can ssh into my office computer (Ubuntu) from my laptop (Windows), and recently helped set up the same for a friend (Ubuntu to Ubuntu). Everything seems to be ...
Drubbels's user avatar
  • 211
2 votes
1 answer
144 views

Multiple GitLab accounts SSH

I have multiple GitLab accounts and I am trying to set up SSH authentication. I have generated the key pairs and saved them in ~/.ssh/public/proj1[2]/id_rsa.pub and ~/.ssh/private/proj1[2]/id_rsa My ~/...
ppribeli's user avatar
2 votes
0 answers
807 views

Windows OpenSSH Server - Connection Time-out and Connection Refused

Edit: My home network is behind a CG-NAT. Figured that out when I saw my WAN IP in my router settings was different than my public IP as shown at ip4.me. I'm not sure what my options are at this point....
Prometheus's user avatar
2 votes
0 answers
3k views

OpenSSH for Windows ignoring Match User directives

I am usingOpenSSH for Windows 7.7p1 on Windows 1903. I used Match User xxxx in sshd_config file, in Program Data -> SSH to change xxxx's root directory to another path in the filesystem, apart from ...
user1173240's user avatar
2 votes
1 answer
374 views

Connecting to Server on remote through port fails due to dynamic random port

I am trying to connect to a supercomputer through ssh and port forwarding. The application is a C++ both server and client. Here is the port data : // default values server_address = "localhost"; ...
sariug's user avatar
  • 21
2 votes
0 answers
1k views

PuTTY - SSH passphrase not being accepted

This is more of a headscratcher than an actual problem. I've created a public/private RSA key pair with Puttygen on Windows 10 and added the public key to an OpenSSH server on Ubuntu. If I attempt ...
theclintox's user avatar
2 votes
1 answer
1k views

Why is Mobaxterm not copying all my lines in my clipboard?

I have trouble copying the lines i have in my clipboard into Mobaxterm (In a VI file with Unix) since it is not copying all my lines, only certain amount and may cut a line in half at the end
Mercenary204's user avatar
2 votes
0 answers
173 views

SSH forwarding through NAT times out for one machine, but not another

This just started happening a few weeks ago seemingly out of the blue. Essentially, I have my home router setup to forward SSH to my home server. I can SSH into my server just fine from outside, but ...
sagargp's user avatar
  • 131
2 votes
0 answers
380 views

Unable to connect to Jupyter notebook on AWS

I have an EC2 t2-small Ubuntu instance running on AWS. I connect to this instance from a windows PC using putty. In the all important Tunnels tab I have the source port as 8000 and destination as my ...
Jai's user avatar
  • 21
2 votes
0 answers
474 views

Using rsync through intermediate host with `sudo` on jump-host

I am user1@host1 and would like to transfer data via rsync from user3@host3. However, I can access host3 only via user3@host2. The catch is, that I can become user3 on host2 only via su or sudo, but ...
janoliver's user avatar
  • 183
2 votes
2 answers
2k views

Can I get the MSYS2 Bash as an optional shell on Windows OpenSSH server? (Not Windows 10)

Goal: Add MSYS2/MinGW64 BASH as an optional shell to an existing OpenSSH server with automation purposes in mind. Constraints: Not Windows 10. WSL is not an option. Shared work environment. Shouldn'...
The Altruist's user avatar
2 votes
0 answers
60 views

Cygwin/Babun: ssh-host-config error with local ADMINSTRATORS and/or SYSTEM

executing ssh-host-config -y shows following output: .... *** Info: called 'sshd'. *** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep. *** Query: Should ...
bambino307's user avatar
2 votes
1 answer
2k views

Using encrypted SSH key generated by PuTTYgen when connecting via SSH with PuTTY

I generated my public/private key couple with PuTTYgen, and now I want to use them to connect to a remote Linux host via SSH. However, PuTTYgen prompted me to save the private key "with a password" (I ...
Eärendil Baggins's user avatar
2 votes
0 answers
823 views

Writing files to Android Phone SD card over SSH?

I successfully set up SSHDroid on my phone so I could both login and use rsync to copy files FROM the phone to the computer. However, when I try to push files back the other way I get the error: $...
SurpriseDog's user avatar
2 votes
0 answers
151 views

Turn a multi-hop ssh connection into a direct connection

I have a machine behind a NAT (that I don't control) that has a reverse SSH connection to a home machine. I can then ssh into my home machine, and via the open reverse connection to the NAT'd machine, ...
Him's user avatar
  • 366
2 votes
0 answers
906 views

Unable to ssh into my Jenkins docker instance

I am trying to use Jenkins Remote CLI to configure my Jenkins server remotely. I am running a jenkinsci/blueocean docker container. To enabled SSHD on my jenkins server: 1) At http://localhost:8080/...
Parichay Barpanda's user avatar

1
3 4
5
6 7
74