OpenSSH is one of the most popular implementations of SSH used today and available by default in many Linux and Unix-like operating systems.

learn more… | top users | synonyms

11
votes
7answers
14k views

How to edit known_hosts when several hosts share the same IP and DNS name?

I regularly ssh into a computer which is a dual-boot OS X / Linux computer. The two OS instance do not share the same host key, so they can be seen as two host sharing the same IP and DNS. Let's say ...
10
votes
3answers
10k views

ssh config under cygwin

I have Cygwin installed on Windows 7. I made default install. I would like to use ssh config file (~/.ssh/config) to set host and options for connecting. Normal ssh command is not able to find the ...
1
vote
3answers
3k views

How can I SSH into home computer from internet

I have a setup like follows I have a router that connects to the INTERNET, where my ISP provides dynamic ip two systems are connected to the router with locl ip 192.168.1.2 and 192.168.1.3 the ...
-1
votes
2answers
447 views

passwordless ssh works for root but not for other users

I did the following for both root and orainst users, I have added id_rsa.pub of first machine to the authorized_keys of the second machine I have 700 permission on .ssh folder passwordless ssh ...
1
vote
0answers
160 views

Set and restrict home directory win32-openssh on windows for sftp

Installed Win32-OpenSSH on Windows 2008R2 server. Using local users to login etc. Two questions: How do I set the home directory for How do I set the home directory for users? It is currently set to ...
0
votes
0answers
23 views

Cygwin SSH Connection Refused. Used to work

I am trying to SSH to my iDevice (jailbroken) and it used to work. Yet now I get this: $ ssh root@192.168.0.25 -v OpenSSH_7.2p2, OpenSSL 1.0.2g 1 Mar 2016 debug2: resolving "192.168.0.25" port 22 ...
0
votes
1answer
13 views

Making an ssh ControlPath connection act as slave-or-fail (not fallback to ControlMaster)

I'd like to force secondary ssh connection(s) to use an existing ControlMaster connection and fail if the master is not present. With ssh -o ControlPath=somewhere -o ControlMaster=no ... this new ...
0
votes
1answer
47 views

Yet another “ssh agent forwarding not working”

I can ssh from hostA to hostB and from hostA to hostC using keys loaded into ssh-agent without any problems. However, if I do ssh -A hostB from hostA, then try ssh hostC from hostB, public key ...
62
votes
4answers
46k views

How to make ssh tunnel open to public?

Well, referring back to this question, I am running the command ssh -R 8080:localhost:80 -N root@example.com on a Mac. Yet the port that is being tunneled is not working publicly. I am running such ...
0
votes
1answer
522 views

OSX 10.11 Bad SSH2 KexAlgorithms '+diffie-hellman-group1-sha1'

I have updated my /etc/ssh/sshd_config file based on the answers provided here - OSX 10.11 enable ssh diffie-hellman-group1-sha1 http://stackoverflow.com/questions/26424621/algorithm-negotiation-fail-...
0
votes
0answers
46 views

passwordless ssh-keygen not working [duplicate]

I've seen many pages on ssh problems similar to this but so far none of them answer my question. I've been trying to set up passwordless ssh for a while now with little success, I'm creating a blank ...
1
vote
1answer
61 views

Ssh Key Generation Algorithm

Ssh provides more than 1 algorithm for encryption of session data. Is the performance of each different ? If so, which is the best one?
11
votes
3answers
36k views

How to uninstall/reinstall cygwin to use the sshd?

I installed cygwin/sshd without good results. I removed the c:\cygwin directory to reinstall. I removed the sshd Administrator user by hand. I reinstalled the cygwin again, then run the 'ssh-host-...
1
vote
1answer
160 views

Ubuntu Server 14.04 - How to fix openssh “broken pipe” remotely?

I just set up an Ubuntu Server and configured it via SSH using openssh on the server. I had to restart and cannot connect via SSH due to Write failed: Broken pipe error. As far as my research goes (...
3
votes
3answers
3k views

SSH Constantly Hangs at SSH2_MSG_SERVICE_ACCEPT Received

I'm having problems with SSH. I can't connect to anything; every connection hangs indefinitely at SSH2_MSG_SERVICE_ACCEPT RECEIVED. I'm on OSX 10.6.8. I'm thinking that it's a problem with my SSH ...
0
votes
1answer
29 views

Record the timestamp when Broken Pipe occurs?

When something goes wrong, SSH prints a message like the following: $ ... $ packet_write_wait: Connection to 45.78.157.165: Broken pipe I'd like to get a timestamp with the error to help with ...
0
votes
1answer
110 views

SSH permission denied from Linux to Windows using keys

I am a beginner in hadoop, and I am trying to set-up hadoop cluster in fully distribution mode. My master is windows and my slave machine is Linux running on VM. I have created SSH keys and in both ...
-3
votes
1answer
67 views

Work blocks OpenSSH but not putty [closed]

My place of work has a corporate firewall which blocks openSSH but not putty. I'm running Ubuntu, so it's no problem for me to use putty instead, but I have remote servers mounted using sshfs, which ...
0
votes
1answer
26 views

Once ssh-agent is killed due to power cycle, why am I still allowed to ssh without a password?

I have two linux servers running RHEL. I set up private keys for ssh using ssh-keygen. I also copied the .ssh folder from the user I created to that same user with intentions of using openmpi. I then ...
1
vote
1answer
755 views

How to properly configure Win32-OpenSSH authentiction

I'm using PC without admin privileges and I need to set up SSH server. I've tried mobaSSH and also freeSSHd but both requires admin privileges. Then I've found Win32-OpenSSH which seems that it might ...
1
vote
2answers
165 views

Cannot connect to local SSH server - bad file number

I have an Odroid XU4 with Ubuntu 14.04 server on it. I installed the ssh server with apt-get install openssh-server. I got the local IP with hostname -I, which is 192.168.0.186, I generated a random ...
0
votes
0answers
336 views

“Network error: Software caused connection abort” with Windows OpenSSH server

I followed this tutorial on installing an SFTP/SSH server on Windows, but I am having problems trying to connect to it. When using either PuTTY or WinSCP, I get the error "Network error: Software ...
2
votes
1answer
159 views

FileZilla is connecting to localhost instead of SSH server (can connect via PuTTY)

I have a Linux OS running on another machine in my home network, with an IP Address of 192.168.178.85. On this machine, I have installed OpenSSH and it is running on port 22. I can SSH in using ...
0
votes
1answer
164 views

unable to enable ssh1

First, let me begin by saying that I am aware that SSH1 is totally inferior to SSH2. Now, having said that... I am trying to enable SSH1 and am unable to do so. In /etc/ssh/sshd_config there's this ...
9
votes
4answers
3k views

Multiple SSH connections to the same system - is it possible?

I have a linux computer acting as a server which can accept incoming SSH connections. Is it possible to reliably connect multiple devices at the same time, such as my phone and laptop, as well as ...
1
vote
0answers
179 views

OpenSSH_6.2p2 on HP-UX B.11.31 ia64, sftp and ssh keys

We are running OpenSSH_6.2p2+sftpfilecontrol-v1.3-hpn13v12 on a Unix server (HP-UX, B.11.31, ia64 architecture). A client fails that tries to log on to our server using sftp and ssh keys (trying to ...
44
votes
3answers
10k views

SHA256 ssh fingerprint given by the client but only md5 fingerprint known for server

When connecting to a new/unknown server (with recent OpenSSH) like: ssh example.com You get the fingerprint like that: The authenticity of host 'example.org (192.0.2.42)' can't be established. RSA ...
1
vote
2answers
2k views

How do I enable auto-logout of Interactive ssh logins after one hour

I have requirement where I want my ssh seesion to target will logout after one hour,but currently leaving an ssh session to target board idle does not get auto logout after one hour. Below is what is ...
3
votes
4answers
15k views

no version information available (required by /usr/bin/ssh)

I am getting no version information available when making ssh. Openssl verion: sat:~# openssl version OpenSSL 1.0.1f 6 Jan 2014 Here is output of ldd /usr/bin/ssh: /usr/bin/ssh: /usr/local/lib/...
1
vote
1answer
40 views

Can I use the same key for SSH from different clients with the same username?

Situation: One server with SSH daemon. Multiple clients with the user myUser which should connect to the server via SSH. With password based authentication everything is fine. Now I would like to ...
1
vote
1answer
27 views

Ignore SSH host key verification for a subnet

I would like to tell my shs client(linux) to ignore the host key verification for a given range of IP addresses, is that possible ? Context : we have this DHCP range we use to build servers before ...
0
votes
2answers
2k views

How do you convert an SSH private key to a .ppk on the Windows command line?

I have generated a key pair with ssh-keygen. I now want to use the same key pair with PuTTY-based applications. Because I'm working in a CLI environment, I want to convert the key to the .ppk format ...
0
votes
1answer
19 views

How to setup ssh key login for a different user?

I am able to setup ssh key login for root user to my remote system from my local machine. Now I have created another user in my remote system like this, sudo useradd --system --gid webapps --shell /...
0
votes
1answer
14 views

SSH-agent not loading when remotely accessing the machine

I have this user account that I have correctly configured to manage my keys to ssh to other instances. When I sit in front of the machine my configuration works as described in my ~/.ssh/config file:...
1
vote
1answer
13 views

Supress environment message after logging into server?

After logging into an OpenSSH server from OS X, the following message is printed: Last login: Sun Dec 27 15:47:12 2015 from 172.16.4.4 Environment: USER=jdoe LOGNAME=jdoe HOME=/Users/jdoe ...
0
votes
0answers
157 views

Can't run command using OpenSSH on Windows

I've just installed Win32-OpenSSH (from github) on Windows Server 2008 R2. It's up and running. Now I'm trying to connect from another host. The connection is established but I can't send commands. ...
1
vote
1answer
2k views

Getting “System error 1067” when installing OpenSSH

I try to install this OpenSSH package on windows Server 2008 R2. I applied all steps (except the firewall one) and all passed succesfully. When I try this command net start sshd I get this ...
-2
votes
1answer
46 views

What's considered the most reliable deployment of OpenSSH?

I have to install OpenSSH on some Windows Server machines (2008 R2, 2012 R2, 2003). I see there are some deployments (this one from Wikipedia and another one on GitHub and there might be more). What'...
4
votes
0answers
65 views

CPU spikes to 100% when using openSSH for windows

I am using openSSH for windows (OpenSSH 7.1p1-1). I noticed that after few days that the sshd.exe processes are at the range of 20% cpu the spike to 100% utilization all taken by the processes. i ...
0
votes
1answer
275 views

Cygwin Openssh key authentication doesn't work in Windows environment

I use Unison on a Windows 10 machine to backup my files to a remote server running CentOS. I connect to the remote machine without a password using OpenSSH and public keys in Cygwin. I have never had ...
1
vote
1answer
285 views

SFTP: Connection closed

I'm trying to connect via sftp to my Synology NAS 215j running sftp server. The sshd works great for root user, but when I do sftp as root, I'm getting Connection closed just after typing correct ...
0
votes
1answer
36 views

ssh closing connection during login for just one particular user

I'm facing this weird issue where the SSH server is closing the connection during login itself for this particular user. I never see the password prompt for the user, server closes connection even ...
3
votes
0answers
48 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 ...
2
votes
1answer
36 views

Will no-port-forwarding in authorized_keys disable all port forwarding?

Here port forwarding I means ALL kinds of port forwarding, -D dynamic port forwarding(for socks4 and socks5 now), -L local port forwarding to remote, -R remote port forwarding to local. How to fine ...
0
votes
2answers
143 views

How does OpenSSH decide which host key to use?

By default, in my current version (6.9p1), OpenSSH Server will create four types of host keys: $ ls /etc/ssh/ssh_host_*_key.pub /etc/ssh/ssh_host_dsa_key.pub /etc/ssh/ssh_host_ecdsa_key.pub /etc/ssh/...
1
vote
2answers
354 views

OpenSSH offering wrong public key

I like to work with some personal Github repos from my work computer (Windows 7) occasionally so after spending way more time than I bargained for learning about how SSH works I created a different ...
0
votes
1answer
3k views

How to connect SSH to localhost in Windows7?

Connect SSH Secure Shell to localhost in Windows machine. What will be host name, username , port and authentication method filled in Quick connect of SSH? I tried with 127.0.0.1, but it is ...
2
votes
0answers
137 views

What may cause .ssh/config changes to be ignored

I had a ~/.ssh/config file that was working fine. it was in this format: Host * IdentityFile ~/.ssh/id_null TCPKeepAlive no ServerAliveCountMax 5000 Host *.domain.com User mydomainuser ...
0
votes
1answer
26 views

enabling multi factor authentication on openssh (publickey + password)

I'd like to make it so that you need to provide the SSH server with a password and an RSA key to login. I can make password protected RSA keys but in that case the password for the RSA key isn't ...
0
votes
1answer
241 views

Disable “Permanently added <host> …” warning on local LAN

I have the following in my ssh_config to connect to machines on my local LAN and machines in a VM: Host 172.16.*.* StrictHostKeyChecking no UserKnownHostsFile /dev/null However, each time I connect ...