The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [ssh]

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

2,937 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
2answers
14k views

scp exec request failed on channel 0

I am trying to SCP files from one computer to another however I get exec request failed on channel 0". When I use SSH however, I can get to the machine with no problems. I am using the SCP ...
9
votes
2answers
822 views

SSHFS graceful degradation instead of freeze when connection is lost. Is it possible?

A third-party program will write files to a SSHFS mounted dir. If the internet connection is lost, the third-party program will likely crash (badly), because all programs trying to access such an ...
8
votes
1answer
541 views

Attach to the same tmux session from different nodes of a cluster

I'm working on a computing cluster which has several hundreds of nodes. A load-balancing scheme picks an idle node to login to when ssh-ing into the cluster. As a result, it is very unlikely to re-...
7
votes
1answer
3k views

VPS compromised? Configured wrong?

I've been renting a VPS for half a year now (educational purposes) and I've been trying to learn as much as possible about keeping it secure. Recently, it was compromised and I suspect that it has ...
7
votes
1answer
9k views

FreeSSHd + WinSCP: “Server refused public-key signature despite accepting key!”

I'm trying to gain access to my Windows 2008 R2 server via SSH. I have a Remote Desktop connection, but I need to upload my files to the server. For SSH servers on the Windows server, I've tried ...
6
votes
0answers
2k views

git clone extremely slow using ssh

Originally I could do git clone using ssh at an acceptable speed. However my ubuntu crashed, so I reinstalled using the newest version 13.04. After I re-installed all I try to do git clone using ssh ...
5
votes
1answer
156 views

Ssh X11 forwarding messes up with default shell

I have a bash specific code in my bash profile: $ cat ~/.bash_profile #!/usr/bin/env bash echo "SHELL: $SHELL" function printfiles() { while IFS='' read -r _file || [[ -n "$_file" ]]; do echo ...
5
votes
0answers
622 views

GPG agent over SSH (with vagrant)

I'm using vagrant for building and signing my debian/ubuntu packages but I'd prefer to not have have to copy my GPG keys into the virtual machine just to sign packages. It just feels insecure. Is ...
5
votes
0answers
2k views

GPG Agent under Windows as SSH Agent for git bash

I'm trying to set up gpg-agent as the common authentication agent under Windows. It works fine for both Putty and regular gpg use, but now I'd like to use it as ssh-agent in git bash as well. From ...
5
votes
2answers
2k views

SSH on a local machine is slow with Mac os X server

I have a local machine and a mac osx server (mavericks). I can open a ssh session on the server from the local machine: user> ssh serveruser@myserver.local serveruser@myserver> However, the ...
5
votes
1answer
784 views

Does a Windows 7 system volume encryption tool exist that allows remote unlocking via ssh during boot phase?

Does a tool/method exist which allows encrypting a Windows 7 system volume while providing the possibility to remotely unlock it via ssh during the boot phase? Is it even possible with Windows 7 (I ...
5
votes
1answer
2k views

ProxyCommand with sudo

I'm trying to set up SSH so that I can easily log into an server that is accessible only via a sudo to an intermediate server. From the command line, logging into it is of the form: sudo -u admin ...
4
votes
2answers
4k views

How to setup SSH/PuTTY to use Yubikey OpenPGP authentication?

I would like to use my Yubikey's OpenPGP interface to authenticate myself against my OpenSSH server on my Windows 10 computer as showcased here. I had created the keys according to the documentation. ...
4
votes
0answers
2k views

What means dispatch_protocol_error: type 51 seq 5 when ssh connection fails and how to solve it?

I'm trying to connect to a Linux server through SSH, by using the following command: ssh root@ip.of.server.com -p 22 However, I'm not able to connect to it. There was only a message, ...
4
votes
1answer
709 views

“ssh -X” doesn't open matplotlib figures

Often times, I ssh into another computer to do python work. While I'm coding, I like to have an ipython shell open for quick testing. For some reason, I cannot get matplotlib to open figures. Here is ...
4
votes
0answers
425 views

Moving mouse in iTerm causes characters to be to printed to prompt

I am having an issue with iTerm that happens to me intermittently. When I am using iTerm and I move the mouse up and down, or click a bunch of random characters are printed to the prompt: I am in a ...
4
votes
0answers
684 views

Unable to ssh into my linux machine behind a router from outside the network

We are about to deploy some of the gateway devices (Raspberrypi) in the field. Although we are trying to make them so robust that we should not be required to remotely access them but as this is one ...
4
votes
1answer
438 views

Binding DPDK to a NIC without loosing connection

I want to bind DPDK to a NIC and I'm following this documentation here If I only have one physical NIC, how do we ensure that we don't loose connection to the machine while running the dpdk_nic_bind ...
4
votes
1answer
522 views

SSH Like Port Forward But with authentication?

ssh user@server -R server:port1:localhost:port2 This way ssh will forward requests to server:port1 to localhost:port2, but anyone can connect to server:port1. So I'm wondering of there's ...
4
votes
0answers
731 views

Windows 10 pro 1607 14393.10 has ssh server built-in?

I see SSH Server Broker and SSH Server Proxy services running and can connect to the machine from LAN and WAN. I am not able to login with administrator account nor I was able to find any information ...
4
votes
0answers
2k views

Why is there no UDP port forwarding in SSH?

I know SSH can forward TCP ports, not UDP. I'm not seeking help to circumvent this restriction (this subject is covered here). I'd like to know what is the reason SSH never got UDP forwarding ability....
4
votes
1answer
411 views

SSH can't read a key from custom authorized_keys file because of a comma

I inherited some code; among other things, there is a custom authorized_keys file with X.509 keys in a format like this one: x509v3-sign-rsa subject:O=GrandsChocolatiers Ltd.,OU=Management,OU=Top ...
4
votes
0answers
4k views

How to paste passwords to terminal for use with SSH?

Hi I am trying to complete the overthewire challenges. They require you to extract passwords and login as different users to proceed. Passwords are quite lengthy and I am not able to paste the in in ...
4
votes
0answers
653 views

ssh disconnect: broken pipe

When I'm connected to an ssh server, I often get disconnected with the error packet_write_wait: Connection to 131.225.190.20: Broken pipe I'm connected via cable. I don't see any instabilities in my ...
4
votes
0answers
3k views

How can I add a new user with SSH access to a Ubuntu VM on Azure?

I feel like this should be an straightforward thing to do, but I'm struggling to find an answer that works... I have an Ubuntu 14.04 server running on Azure with the Resource Management type of ...
4
votes
0answers
2k views

Simplest way to setup my own remote private git server

First of all, I've read all the git-server-setup documents on the internet, but still, there is one thing missing -- I want to setup a simple GIT server in (Ubuntu) Virtual Machine for myself, not for ...
4
votes
0answers
1k views

ssh connection sporadically hangs

Whenever I ssh to elsewhere, the connection is fine for 1-10 minutes, then hangs: no error messages, just stops accepting input. I can exit (CR-~-.) but that's it. I can't find anything suspicious ...
4
votes
0answers
884 views

Invoking a local command on every successful connect when using ssh multiplexing?

I'd like to automatically run a command every time I successfully connect to a remote host via ssh. I can do this for the first connection to each host using the PermitLocalCommand yes and ...
4
votes
0answers
665 views

ssh port-forwarding and remote bind failure: ExitOnForwardFailure not working?

I have two FreeBSD 9 hosts and I want to maintain a tunnel to reach firewalled host R from a high port on cloud host C. ssh -y -i tunnel_id_rsa -o ConnectTimeout=60 -o ServerAliveInterval=20 -o ...
4
votes
0answers
3k views

SSH reverse proxy

I am setting up a Gitlab server (https://about.gitlab.com/) inside a virtual machine using KVM on a Ubuntu 14.04 host. My university charges us for every external IP address, so I cannot use bridged ...
4
votes
1answer
585 views

Auto copy ssh key on successful ssh password login

Is it possible to auto copy my ssh key after a successful first time ssh login with password ? In other words : when I type : ssh user@host for the first time to that host and I successfully ...
4
votes
0answers
1k views

How to manage SSH keys securely in Windows?

I currently have an SSH key I use to access both Bitbucket and my home server from my Windows laptop. The most convenient way I found to deal with the use of the private key was to just have pageant ...
4
votes
0answers
2k views

How to set timeout for svn update?

I have about hundreds of server(all has its own working copy), fabric(python ssh tool for administration) will issue multiple svn update to those machines, many commands (10% machine) return ...
4
votes
2answers
2k views

Tunneling ssh via a SOCKS5 Proxy on Windows

I'm using Windows 7 over my 'restricted' campus network. I use Heroku Toolbelt to work with heroku projects, which inturn uses git and ssh on port 22. However, port 22 is blocked in my campus. Can i ...
4
votes
0answers
325 views

TortoiseGit stops connecting after a seemingly random amount of time

I use TortoiseGit to connect to a private remote git server, but after an indeterminate amount of time (possibly longer than 6 hours?), trying to connect results in a bad file number error. I've tried ...
4
votes
2answers
3k views

what's the difference between /etc/init.d/sshd start and /usr/sbin/sshd?

I'm having issues with passwordless ssh. I've checked, double checked and checked again that I have everything set up correctly. Both machines are RHEL6 and when the destination machine first boots ...
4
votes
0answers
161 views

Changed home directory permissions on remote server, can no longer ssh into it

I changed the permissions on my ~ directory, and according to this question about ssh and home directory permissions I can no longer ssh into my remote server because it rejects my public key. Is ...
4
votes
0answers
2k views

HTTPS hangs using SOCKS5 proxy over SSH tunnel

Using SecureCRT at work to connect via SSH to my home Mac using a SOCKS5 proxy (my company also has a corporate proxy). I am using Chrome and Firefox with this SOCKS proxy. Regular browsing is quick, ...
4
votes
0answers
4k views

SSH tunnel over HTTP(S) proxy (Reverse RDP)

I've been trying to accomplish this scenario: HOST_WORK is behind non-transparent squid_proxy (its not, but to get outside you need to use it, all other packets are black-holed on gateway not to ...
4
votes
0answers
871 views

gpg-agent asks for ssh password, although the private key has no password set

I am using gpg-agent to manage my github ssh key. I generate my (private) ssh key via openpgpg2ssh from my private gpg key. Unfortunately, although my private gpg key is not password protected, gpg-...
4
votes
1answer
3k views

How to use OpenSSL with openCryptoki and software TPM?

I would like to make work OpenSSH with OpenSSL plus openCryptoki (pkcs11) plus a software TPM. As far as I have understood, openCryptoki is capable of software token (for test purpose). I would like ...
4
votes
2answers
2k views

SSH server installation on Windows

I'm working on a SSH project. For that I setup everything on client side. But I'm facing a problem on my SSH server. I tried some SSH servers like OpenSSH. I installed the OpenSSH server on my ...
3
votes
0answers
1k views

kex_exchange_identification: read: Connection reset by peer. Connection works on other NIC/subnet

I re-installed a VM (CentOS7) and now I get this error. The VM has two adapters that are on different subnets. Funny enough ssh worked fine on one subnet after fixing the expected MITM warning. ssh -...
3
votes
0answers
363 views

macOS proxy.pac not working?

Under Network->Advanced->Proxies->Automatic Proxy Configuration I have it set to http://www.sendu.me.uk/sanger/proxy.pac, the contents of which are: function FindProxyForURL(url, host) { if ((...
3
votes
1answer
117 views

Putty stops displaying colors when in SU

So as the title suggests my putty stops displaying colors as soon as i enter SU. I dont know if this is how its suppose to work or if there is any work around, already tried googling but only come up ...
3
votes
0answers
482 views

Allow USB device access from SSH session

I am trying to set up a RaspberryPI 3 connected to a Canon EOS 350D (Rebel TX for American friends) for a timelapse using gphoto2. Everything works perfectly locally (monitor and keyboard connected ...
3
votes
0answers
52 views

Why do I sometimes see a file named something like “.nfs000000000048134c000001e7” when I run ls -a?

I'm ssh'd into a server running some form of linux. Here's what ls -al returns: -rwxr-xr-x 1 ari csugrad 12088 Jan 20 20:33 .nfs000000000048134e000001e8 It's an executable file, and executing it ...
3
votes
0answers
4k views

startx results in error “timeout in locking authority file /home/myaccount/.Xauthority”

About once a month, I try to start X windows on my local desktop with: startx but the terminal seems to hang, then gives the error: xauth: timeout in locking authority file /home/myaccount/....
3
votes
0answers
1k views

Can't type during git clone putty connection

I want to clone git repo from cli in Windows. When I'm executing git clone '...' I'm getting then The server's rsa2 key fingerprint is: ssh-rsa blablabla If you trust this ...
3
votes
0answers
2k views

How to setup Teamviewer on remote server (SSH only)?

I have a VPS with Debian 9 and want to run Teamviewer with XFCE. Having only SSH access makes this difficult. (I have read Teamviewer's guides but they didn't help) Here is what I have tried so far: ...