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.

1367 questions
-1
votes
1 answer

OpenSSH private key deleted every time Azure App Service restarts

My App service needs to communicate over openSSH without password. I have a Linux App Service plan tier B1 hosted on Azure. If I type "ssh-keygen" it creates a .ssh folder in a root and id_rsa and id_rsa.pub in this folder without a problem. So I…
Lopuch
  • 664
  • 2
  • 5
  • 20
-1
votes
1 answer

SSH remote execute command after using pbrun

I am using a script that executes the following command in a bunch of servers: sshpass -p password ssh -o ConnectTimeout=10 -o StrictHostKeyChecking=no user@server 'sudo yum -y install NessusAgent.x86_64' For most servers it works using sudo, but…
DrizzerX
  • 3
  • 4
-1
votes
1 answer

bash: how to suppress login message from scp output

I have a simple bash function for interactive use: push-file() { hosts="$1" src="$2" dest="$3" for h in "$hosts" do echo "=== $h ===" scp "$src" root@$h:"$dest" done } I can then type, for…
alani
  • 12,573
  • 2
  • 13
  • 23
-1
votes
4 answers

Failed to connect to the remote extension host server (Error: Connection error: Version mismatch, client refused.)

I am trying to use remote-ssh with VS Code. However, I got this remote-ssh log: [11:37:47.034] Log Level: 3 [11:37:47.037] remote-ssh@0.49.0 [11:37:47.037] linux x64 [11:37:47.040] SSH Resolver called for "ssh-remote+gochin_dev", attempt…
Peter Roh
  • 1
  • 1
  • 1
  • 3
-1
votes
2 answers

How to SSH into docker container by a non-root user of that container?

I am using OpenSSH her. I can easily ssh using root@serverIP -p portNumber, but whenever I try to ssh via a docker container user like user@@serverIP -p portNumber it gives me permission denied. Moreover, I have also seen the ssh service is not…
-1
votes
1 answer

Not able to connect to AWS server using linux terminal after a reboot with "sudo service sshd restart". Getting “Connection timed out” error

I was trying to edit the sshd_config file and in between that my machine crashed. When I tried again it started showing the below message- Found a swap file by the name "/etc/ssh/.sshd_config.swp" dated: Mon Oct 23 07:17:17 2017 [cannot be read] …
Aayush
  • 129
  • 2
  • 8
-1
votes
1 answer

ssh on windows through firewall (not putty)

I need to connect to an Ubuntu SSH Host (12.34.56.78 on a different Port = 443) via a corporate proxy from my Win10 machine. This has to be done via commandline, so I can use VS Code Insiders "Remove SSH" function. I created a ssh-key on the…
thetemplar
  • 97
  • 2
  • 3
  • 9
-1
votes
1 answer

I have a problem with the java SSHClient class, specifically the Expect method does not return data as espected, what could be happening?

I have used the SSHClient class of java to connect to a Juniper router, when entering the console in the putty console it returns the result without problem, but when doing it from the Java code it does not save what is returned by the command, or…
Esteban
  • 71
  • 1
  • 9
-1
votes
1 answer

Git warns with `Warning: Permanently added to the list of known hosts` despite a valid ~/.ssh/known_hosts

I'm setting up a Git checkout step for continuous integration on a Linux host with openssh. The git fetch step succeeds but logs a warning. How do I fix the following warning? Warning: Permanently added the RSA host key for IP address…
Joe
  • 3,370
  • 4
  • 33
  • 56
-1
votes
1 answer

Automate starting ssh service after running the container

I was working on a Dockerfile used to create an Android docker image. After creating the image and running the container , I have checked ssh service using command (service ssh status) and noticed that ssh service is not running. I have tried to…
Omar Khaled
  • 401
  • 6
  • 11
-1
votes
1 answer

SSH hangs and then times out without connecting

I have VBOX running a Ubuntu 18.04 installation, from which I am trying to set up SSH to a machine on the internet. I can SSH into the internet machine from elsewhere. The vbox ubuntu machine has no firewall, and a bridged connection to the outside…
Ian
  • 1,941
  • 2
  • 20
  • 35
-1
votes
1 answer

Can't SSH into a home computer

I'm trying to SSH into an Ubuntu computer from my MacOSX computer. I have openssh installed on my Ubuntu and have disabled the firewall. I've ssh-ed into other servers before on this Macbook. I don't get a response from the Ubuntu server though: $…
Hackerman
  • 1,289
  • 1
  • 14
  • 29
-1
votes
2 answers

Centos SSH access denied

I'm pulling my hair out over this and can't find a solution anywhere. After a reboot I started getting "Connection refused" through port 22000 which was the one I had configured and SSH was still listening to(I double checked). I'm connecting from a…
-1
votes
1 answer

Log in with SSH with a private key

I've been given by someone a private key to log into their machine with SSH. I got no public key, and the password authentication works. I added the key to /root/.ssh/id_rsa, but it still doesn't work. What am I missing? I thought I would have to…
Flu
  • 45
  • 1
  • 5
-1
votes
2 answers

How to read an OpenSSH or OpenSSL private key natively in Java?

I'd like to read an OpenSSL private key natively in Java, without using BouncyCastle. I have searched far and wide for this, but I cannot find an answer. When you see a key like: -----BEGIN EC PRIVATE KEY----- ...base64 here.... -----END EC PRIVATE…
Jonathan S. Fisher
  • 8,189
  • 6
  • 46
  • 84