Questions tagged [openssh]

OpenSSH is the most widespread and de-facto standard implementation of SSH protocol. Both server and client tools are included.

OpenSSH is the most widespread and de-facto standard implementation of SSH protocol (Secure Shell). It is the default SSH toolset for most *nix systems. The OpenSSH is open source licensed under BSD license.

The OpenSSH suite includes:

  • sshd - SSH deamon
  • sftp-server - SFTP server subsystem (though in current versions of OpenSSH, the SFTP server is built into the sshd. The sftp-server binary is kept for a backwards compatibility)
  • ssh - SSH terminal client
  • sftp - SFTP client
  • scp - SCP client (internally it works as SCP server too)

Other tools included are ssh-add, ssh-agent, ssh-keysign, ssh-keyscan, ssh-keygen and ssh-keysign.

The OpenSSH server (the sshd) is configured using sshd_config files. The client tools are configured using ssh_config file.

1137 questions
17
votes
6 answers

set environment variable SSH_ASKPASS or askpass in sudoers, resp

I'm trying to login to a ssh server and to execute something like: ssh user@domain.com 'sudo echo "foobar"' Unfortunately I'm getting an error: sudo: no tty present and no askpass program specified Google told me to either set the environment…
jan
  • 640
  • 1
  • 6
  • 14
16
votes
3 answers

Accessing a git repository via ssh behind a firewall

I would like to access (clone/push/pull) a private (via ssh) git repository while behind a corporate firewall that only allows http proxy access. I have written a robust Java (daemon) program (based on the JSCh class library) that will allow me to…
pajato0
  • 3,430
  • 3
  • 26
  • 36
16
votes
4 answers

OpenSSH client hangs on logout when forwarding X connections

I setup Ubuntu Linux to run an OpenSSH server. My DSL router is port forwarding the SSH connection. When I use ssh -X myhost and then open some GUI program, then close the GUI application and exit, then the SSH logout hangs. -c seems to work…
admiles
  • 343
  • 1
  • 3
  • 11
15
votes
2 answers

ssh/config: line 1: Bad configuration option: include

In my ~/.ssh/config I added the following: Include /Path/to/ssh.config And it gives error: ssh remoteEc-2 /Users/Me/.ssh/config: line 1: Bad configuration option: include /Users/Me/.ssh/config: terminating, 1 bad configuration options ssh -V…
Volatil3
  • 11,721
  • 33
  • 112
  • 218
15
votes
9 answers

Directory permissions for Cygwin SSH (Windows 7)

I am a fan of Linux but due to bad Intel wireless drivers in Linux, I had to switch to Windows 7. I have installed Cygwin in Windows and want to configure SSH to remotely connect to my laptop. I searched with Google and found information for…
Boolean
  • 13,126
  • 28
  • 82
  • 127
15
votes
6 answers

SSH: Connection closed by remote server

I am trying to ssh login to my remote server. But whenever i try to login through terminal using ssh command: ssh root@{ip_address} I get error: Connection closed by {ip_address} I checked hosts deny and hosts allow, there is nothing in the…
user2206724
  • 1,095
  • 3
  • 18
  • 36
15
votes
5 answers

ssh with command....Plus the shell

I'd like a command that ssh'es into a machine, runs a command (cd or execute a script or su), and then gives me the shell. Passing a command to ssh seems to always exit. Some examples of what I'm looking for: 'ssh me@machine1 "./executeMyScript &&…
robarson
  • 433
  • 4
  • 12
15
votes
3 answers

Cross Compile OpenSSH for ARM

Does anybody know how I can cross compile OpenSSH for ARM? This is what I have done: First I've downloaded Zlib source code, untarred it, built it and installed it using the following command lines: # ./configure --prefix=/usr/local/cross/arm …
arian
  • 161
  • 1
  • 1
  • 4
14
votes
3 answers

Cannot parse privateKey: Unsupported key format

In my Mac book pro with OS Majave, I used SSH-KEYGEN generate a new SSH key for node.js module SSH2. However, I got error message: Cannot parse privateKey: Unsupported key format I validated the key with ssh command, it just works fine. But not with…
George Zhang
  • 311
  • 1
  • 2
  • 8
14
votes
5 answers

OpenSSH using private key on Windows ("Unprotected private key file" error)

I am attempting to do a simple connection to a SSH server using OpenSSH for Windows using a private key, and am met with this: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! …
Excludos
  • 610
  • 1
  • 7
  • 21
14
votes
9 answers

SSH - a way to transfer files without opening a separate SFTP session?

Not really a programming question, but relevant to many programmers... Let's say I have opened an SSH session to another computer. remote:html avalys$ ls welcome.msg index.html readme.txt remote:html avalys$ Is there any command that I can…
avalys
  • 3,502
  • 4
  • 22
  • 22
14
votes
1 answer

Importing OpenSSH RSA Public / Private Key Pair into Apple's Keychain Access

As stated in the title, I would like to import a key pair into Keychain Access. What I have done: Obtaining an RSA public / private key pair by using OpenSSH What I am going to do: Importing the key pair into the "login" keychain of Keychain…
13
votes
2 answers

Xming Display is very slow when using SSH

I am using SSH and Xming to run Simics simulator and connect to some Linux guest machine. I use x11 Tunneling. The x server seems to be very slow and I need to spend a long time to run a single command on the linux guest machine. Do you have any…
Moonwild
  • 161
  • 1
  • 2
  • 9
13
votes
3 answers

What is the secure/correct way of adding www.github.com to the known_hosts file?

I want to access my github repositories via ssh. When I access the repository for the first time, I am asked If I want to add the github ssh server to my known_hosts file, which works fine. That request also shows me the RSA key fingerprint of that…
Knitschi
  • 2,175
  • 1
  • 23
  • 44
13
votes
2 answers

How do I keep SSH connection alive on Windows 10?

I've added the OpenSSH client (Beta) feature on Windows 10 so I can call it by running ssh on the command line. However the terminal windows (and thus the connection) freezes when inactive for too long. I know I would solve this on Linux by editing…
SlowerPhoton
  • 596
  • 1
  • 4
  • 14
1 2
3
75 76