Questions tagged as ['openssh']

OpenSSH (OpenBSD Secure Shell) is a set of computer programs providing encrypted communication sessions over a computer network using the SSH protocol.
Score: 0
Newbie avatar
Connecting to sever through ssh
cn flag

I tried to connect to my sever through the ssh using ubuntu but it does not work.

 sudo apt-get install openssh-server openssh-client
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-client is already the newest version (1:8.2p1-4ubuntu0.3).
openssh-client set to manually installed.
openssh-server is already the newest versio ...
Score: 0
nakbi avatar
How to prevent ssh client to access/view a specific folder
de flag

Using the SSH opened port, it was possible to verify the folders and the files present, under the directory /usr/share/SecretFolder They are exposed without authentication. My question it's possible to forbid interaction with them. or to hide this folder. It's possible to configure that in the Makefile of OpenSSH. Anyway, I need a solution.

Score: 0
Garam Lee avatar
How can I allow access to SSH only at a specific time?
in flag

Based on Ubuntu 18.04,

I want to allow users to access only from 9 a.m. to 5 p.m.(working time) on the SSH server. (used OpenSSH-server package)

I've looked up all the materials I think will help you from user management to PAM settings on Google, but I don't think there's any information to restrict access by SSH time zone.

(But, I have not to use firewall-related services like ufw.)

If you can help ...

Score: 2
Adonis Cedeño avatar
Using a PuTTY private key from windows to linux
cn flag

I've generated two keys on PuTTY: public and private. Using this software on windows I can connect to the server as usual.

Then I tried to copy those files in my ubuntu machine (21.04), and logged in loading the private key (open putty, write the user@hostname and then load the private key at SSH>Auth), but there is unable to connect being rejected by the server as this error says:

Unable to loa ...
Score: 0
Carlos Garcia-Vaso avatar
Can't generate SSH ed25519-sk key
cn flag

I'm trying to generate an ed25519-sk SSH key in Ubuntu 20.04.03 LTS. However, I get a 255 error code when I try. I'm using OpenSSH version: OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f 31 Mar 2020. See below for the command I'm using and its output:

$ ssh-keygen -vvv -t ed25519-sk                                                     
Generating public/private ed25519-sk key pair.
You may need to  ...
Score: 1
Manuel Jordan avatar
How retrieve or recreate a delete file from the /etc/ssh directory
kz flag

In the /etc/ssh directory exists the following content:

moduli      sshd_config           ssh_host_ecdsa_key      ssh_host_ed25519_key      ssh_host_rsa_key      ssh_import_id
ssh_config  sshd_config.ucf-dist

I can see practically two categories:

  1. public/private keys
  2. configuration files

If any of those files for any of these categor ...

Score: 0
quantfinancequest avatar
If I do not install openssh when creating an ubuntu server, can someone still SSH into the server?
vn flag

Ubuntu server gives me the option to install openssh. If I reject this, is there anything more I must do in order to completely disable SSH from my server?

Score: 2
How to access home ssh server from outside via the Internet?
gp flag

I am running ubuntu server 20.04 and out of the blue I am getting operation timeout. I was wondering how can I troubleshoot the issue.

I am using ufw and the connection port is open. so when I use sudo ufw status , it shows me that the port is accessible.

When I run systemctl status sshd I get that the process is active and that sshd is listening to port xx and :: port xx

I can log on to  ...

Score: 0
makerio avatar
systemd not starting ssh server
ps flag

attempting to start ssh returns Failed to start ssh.service: Unit ssh.service not found.

trying to install it retuns E: Package 'openssh-server' has no installation candidate.

ubuntu 20.04 LTS

Score: 0
Federico Gentile avatar
Why am I able to SSH a remote machine even with the wrong keys?
fr flag

Description: I have created a ssh connection between my Windows Pc and Raspberry Pi. To so I followed the following steps:

Step 1: Somehow get the IP address of the Raspberry Pi. It should be something like this:

Step 2: Open a shell and access the Raspberry Pi via ssh:

ssh pi@

You will need the password.

Step 3: In the home directory of the remote pc use these commands:

Score: 1
vlmercado avatar
How can I install openssh-server without openssh-client on Ubuntu Server 20.04
bo flag

I'm trying to install openssh-server on a Ubuntu server 20.04. When I try to install it with the following command:

sudo apt-get install openssh-server

the process wants to install openssh-client, openssh-sftp-server and ssh-import-id. If I proceed and try to remove openssh-client, openssh-server and the other packages are removed too.

Is there a way to install openssh-server only?

Score: 1
Hinal Patel avatar
How to upgrade ssh version from 8.2 to 8.6 in ubuntu machine
ng flag

I have tried to install ssh version 8.6 with ref link After installation when I run command "ssh -V" it shows latest version (8.6) but when I telnet it displays older version (8.2) of ssh. for Vulnerability Scan I am trying to install latest version of ssh in my Ubuntu 20.04 LTS system.

Score: 1
Abayomi Usman avatar
How to install ssh keychain on Ubuntu with WSL
in flag

Please help me understand how to install ssh keychain on my Ubuntu under WSL in order for me to be able to configure my .ssh/config file to use key chain. I've tried editing my config file that I created myself in my .ssh folder to add Usekeychain but it does not recognise that as a command.

I tried uninstalling my ssh server and re-installing it manually but nothing changed. I just got stuck in adding  ...

Score: 0
Asep Saepudin avatar
Can I use a user on the LDAP database server to do remote via SSH
pe flag

I've already configure LDAP Servers on Ubuntu, and then it's successfull, so client can access user which is at on the database LDAP Servers from the linux local terminal, but when i'm try to remote my computer client via SSH using user on the database LDAP Servers, its refused. what exactly do i need to configure?

Score: -1
llesh avatar
Cannot use ssh keys anymore to connect with different services or repositories
au flag

I set a bunch of keys that I use for various reasons like connecting to my personal website or various source control management platforms like GitHub or sourcehut. I was working as usually as recently as yesterday, but today suddenly none of my keys worked when I tried to connect with ssh. When I try to connect it just for example to my website it shows this screen:

# ssh -vvv -i ~/.ssh/digitaloce ...
Score: 1
puma avatar
How to ssh into a remote computer
in flag

I have two laptops, one running Ubuntu (server) and another running Debian (client), and I want to use ssh to log in to the shh server. While on my router's network, using the private IP address of the server works fine. However, as soon as I leave the network (client), such as connecting to my phone's hotspot or using some other network with internet access, I can no longer connect, using either the pu ...

Score: 0
user avatar
Connection timed out problem
de flag

I'm new to ubuntu .. i tried to connect pc remotely using ssh and checked firewall to allow port 22 work .. i used this command to cnnect

ssh user@ 

but got

ssh: connect to host  port 22: Connection timed out 

i could connect the server with ip local but public ip address not

i checked ping in the client and got

PING ( 5 ...
Score: 0
Rahul Srivastava avatar
Error message: An error occurred in the underlying SSH library that Vagrant uses
ke flag

The below error message is seen while running a playbook that uses a Vagrant environment to log in to the machine.

An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.

If the problem persists, please report a bug t ...
Score: -1
Della avatar
How to Control the SSH Service
my flag

Ubuntu 20.04.

I have installed the openssh-server to test with ssh, but since then, whenever I boot up the system, the server starts running at port 22, which I feel is a security risk when I am connected with WiFi (and maybe it even hogs a lot of RAM).

So my questions are

  • How to control from the terminal whether the service starts at boot. I understand it has something to do with systemd, but so ...
Score: 0
mon avatar
ssh - private key file requires \n at the end of file or cause "Load key id_rsa invalid format"
vn flag


Has OpenSSH introduced a change that requires \n at the end of the private key file (id_rsa)? Previously I was on Ubuntu 18.04 and I believe id_rsa without \n at the end of the file was working. Now on Ubuntu 20.04, ssh does not work if id_rsa does not have \n at the end of the file.

$ diff id_rsa.bak.od id_rsa.od 
< 000a20       K   E   Y   -   -   -   -   -
< 000a29
& ...