Questions tagged [ssh]

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

3,370 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
2answers
1k 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
0answers
5k 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....
8
votes
2answers
15k 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 ...
8
votes
2answers
929 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-...
8
votes
2answers
6k views

Shared connection frequently closes when opening a new connection

I'm making heavy use of reusing a shared connection which I open to a remote box at the beginning of my workday. My .ssh/config looks somewhat like this: ControlMaster auto ControlPath ~/.ssh/...
8
votes
1answer
10k 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 ...
7
votes
0answers
748 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 ...
6
votes
1answer
5k views

ssh randomly can connect, and sometimes "kex_exchange_identification: Connection closed by remote host"

Connecting to my server has never been a problem. But now I've added a mesh router in bridge mode to my regular router, and when I try to ssh to my server, sometimes it works fine, and other times ...
6
votes
1answer
3k 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 ...
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
0answers
3k views

Reverse sshfs over ssh

I want to mount dir on remote machine from host machine connected over ssh preferably via ssh tunnel; with method described below. how to mount local directory to remote like sshfs? But if get peer ...
5
votes
1answer
200 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
799 views

Is it possible to make WinSCP use my SSH config file?

I use SSH-based tools on Windows, which use configuration files in %HOME%\.ssh\. Is it possible to make WinSCP use that configuration file too, so I only have to manage one configuration? It's ...
5
votes
0answers
3k views

How do I remote SSH into an IPv6 address behind a router firewall?

I have this fancy new ubuntu server I just built assembled, and I'm trying to set up ssh from anywhere so I can keep it headless. I've been able to set it up locally, and as long as I'm on the ...
5
votes
0answers
835 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
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 ...
5
votes
0answers
3k 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 ...
5
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, ...
5
votes
1answer
862 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 ...
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
0answers
185 views

Windows 10's SSH Client can't paste tilde and backtick

I'd like to use Windows 10's SSH Client so I don't have to install other programs to ssh but it is impossible for me to paste the tilde character (~) and the backtick (`), they are just ignored. By ...
4
votes
0answers
9k views

Force restart of systemd-logind.service

I'm having trouble login using ssh on one server, the connection takes too long. I have had the same situation before on a different server and restarting systemd-logind.service worked. I tried to ...
4
votes
0answers
823 views

Can you connect two GNOME-boxes via ssh?

I’m trying to set up 2 node Hadoop cluster using two lap-tops with GNOME-boxes, both running Ubuntu 17.10. The both laptops are connectes to the same wifi but the GNOME-boxes alone are not connected ...
4
votes
1answer
7k views

Microsoft Remote Desktop - "Started Connecting, Giving Up"

My local machine is a Mac and I ran out of disk space on on my remote machine's "/dev/xvda1" filesystem. % sudo df Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 ...
4
votes
1answer
1k 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
1k 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
2answers
965 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
699 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
1answer
935 views

How to get an ssh socks proxy on demand?

I know ssh provides a SOCKS proxy with -D. I wonder if it's possible to start such a proxy on demand, the moment a connection is made to a specified port (using the likes of socat and nc under the ...
4
votes
0answers
950 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
1answer
2k views

How do I automatically ssh in tmux if I open a new pane or window from an ssh pane or window?

I'm a bit of a tmux novice, so there may be a really easy answer to this question, but the title pretty much sums up the question. Let's say I am ssh'd into a server in a tmux window and I go <...
4
votes
1answer
661 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
712 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
4k 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
1k views

Cygwin: scp/ssh is slow

I'm using rdiff-backup for backuping my data. Since some machines are using Windows I installed sshd and rdiff-backup with cygwin there. The backup works but is pretty slow. I then did some testing ...
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
3k views

Password required when trying to ssh into a server using Cygwin on Windows 7

I'm trying to set up a server at our company, and one of the things I'd like to be able to do is host public Git repositories on it which I can access over ssh. Both the server and the workstation I'm ...
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
1k 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
801 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
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
1answer
2k views

ssh session occasionally hangs for some time

I have several ssh connections to a server that is in the same LAN as my desktop machine. Some sessions have X forwarding enabled, some don't. Both types of sessions occasionally hang for a couple of ...
4
votes
1answer
1k views

How can I make OSX terminal tab names the same as .ssh/config host aliases

Setting up a .ssh/config is a great time saver. The host aliases with user defined names make it easier keep track servers and key files. However, the OSX terminal tab names are displaying what ever ...
4
votes
0answers
327 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
4k 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
209 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
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
933 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
8k 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/....

1
2 3 4 5
68