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

Unable to connect to OpenSSH server from local .NET application

I have a remote server running Windows 2022 with OpenSSH Client and OpenSSH Server installed. I am able to connect to the remote machine with RDP with an Admin account and everything looks like it is correct. Services are installed and running.…
Ben
  • 111
  • 1
  • 3
  • 16
-1
votes
1 answer

Port22:Resource temporarily unavailable

enter image description here I am still beginner with ubuntu servers and when l was trying to connect to server I got the error in image I searched a lot about the problem to find solution but I didn't find anything help with this problem.
Joe Smith
  • 1
  • 1
-1
votes
1 answer

SSH Host Based Authentication Windows

I am trying to configure Host Based Authentication for SSH from Windows to Windows using OpenSSH. I have found the following articles but they are Linux…
azhar rahi
  • 331
  • 4
  • 16
-1
votes
1 answer

Paramiko ssh client ssh_stderr comes as 'sudo: no tty present and no askpass program specified' while executing docker command in Python

I tried to read the docker container logs using an ssh connection. def test_read_ssh(): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(IPAddress, username='usr', password='pwd') …
KBNanda
  • 595
  • 1
  • 8
  • 25
-1
votes
1 answer

Unable to provision with file multiple time

While trying to provision with file multiple times, second occurance is not being considered. Not sure if I'm doing it correctly. Please throw some light ! The below block works perfectly - source =…
-1
votes
1 answer

scp: "Host key verification failed. lost connection" when attempting to copy files from remote server to WSL

I have a user at a remote server, let's call it remote_user@remote_server. I also have a user on my WSL2 Ubuntu, let's call it wsl_user@. When I tried to use the command scp -v -o StrictKeyChecking=no…
Kaze Kuroyuki
  • 39
  • 2
  • 8
-1
votes
1 answer

What permissions does the home directory need for ssh?

I have created several linux users with a home directory in a container and now I want to connect via ssh. addgroup -S user1 && adduser -S user1 -G user1 -s /bin/sh addgroup -S user2 && adduser -S user2 -G user2 -s /bin/sh I then have the following…
user5580578
  • 1,134
  • 1
  • 12
  • 28
-1
votes
1 answer

Can't connect to OpenSSH SFTP when using SSH.NET in a WCF Service

The organization has a integration service layer built on .NET 4.5.2. It has several WCF services running. One service uses SFTP to connect to SFTP server in the same machine to read and move some files. It uses simple username and password…
MichaelO
  • 1
  • 2
-1
votes
1 answer

How can I automatically change directory on ssh.exe login?

I'm trying to get ssh.exe to open an ssh session in the specific direrecory on the remote server. my command: ssh.exe root@1.1.1.1 -p 22 "cd /home && bash" it works, but I didnt got login message and the root@1.1.1.1:~# prefix how it looks
Beelzebub
  • 1
  • 2
-1
votes
1 answer

Connectig to sFTP Server using SSH public/private key. Error {Invalid private key file.} Using SSH.NET

Firstly I generated the keys using var keygen = new SshKeyGenerator.SshKeyGenerator(2048); var privateKey = keygen.ToPrivateKey(); var publicSshKey = keygen.ToRfcPublicKey(); The private key generated the following string: -----BEGIN RSA PRIVATE…
James
  • 19
  • 2
-1
votes
2 answers

Can't ssh in Raspberry PI from Manjaro

I'm able to ssh into pi from MacOS using ssh pi@raspberrypi.local or ssh pi@ip_address. I have been doing this for a long period of time. Now I installed Manjaro Linux along with the MacOS but I can't ssh in pi from Manjaro. ssh pi@raspberrypi.local…
-1
votes
1 answer

Exact format of a open ssh private key

I've been trying to complete a CTF on HackTheBox and at some point I get a openssh private key that I can then use to connect as root through ssh. The command I use is "ssh -i id_rsa root@" by the way but I'm almost sure that's not the…
-1
votes
1 answer

C# Renci SshNet The server response contains a null character at position 0x0000002A

i have multiple Raspberries running with SSH server: (OpenSSH_7.4p1 Raspbian-10+deb9u7, OpenSSL 1.0.2u 20 Dec 2019). And if i try to connect via Renci SshNet, i get the following error message: Renci.SshNet.Common.SshConnectionException: "The…
EnTeOni
  • 15
  • 4
-1
votes
1 answer

How to push to windows git remote server from a local windows repository

My company was using SVN for code versioning now we are going to use GIT so I installed git on my local windows server and made one repository there using git bash commands. $ mkdir iri-repo $ cd iri-repo/ $ git init --bare In the local windows…
-1
votes
2 answers

running multiple commands in the same shell on server using python

I want to run multiple commands with same shell. Executing command of paramiko library is not with same shell. Commands : Ssh cloud-user@node -i /path/to/bcmt_rsa Cat /etc/ssh/sshd_config Change permitRootLogin yes to no Restart sshd server Log to…