Skip to main content

Questions tagged [openssh]

OpenSSH (OpenBSD Secure Shell) is a set of computer programs providing encrypted communication sessions over a computer network using the SSH protocol.

Filter by
Sorted by
Tagged with
0 votes
1 answer
5k views

How to fix the "Connection failed with error: Failed sending banner ....." for ssh?

At times when the remote device is behind a VPN or is in local network, this error shows up: Connection failed with error: "Failed sending banner to ....@..........:22" This shows up infrequently ...
6 votes
1 answer
982 views

scp failing on 24.04

I recently upgraded a box to 24.04 and several scripts using scp are failing. They work perfectly on an older box but the new box can't copy the files and results in a "No such file or directory&...
2 votes
1 answer
9k views

root@localhost's password: localhost: Permission denied, please try again

I am trying to setup Hadoop in "Pseudo-distributed Mode". I have already performed the below steps: I have installed Openssh-server. I have generated the rsa type key pair. Copied *rsa.pub to ...
-1 votes
1 answer
55 views

ssh only works after rebooting. Ubuntu 22.04

A local Mac can connect remote Ubuntu 22.04 by ssh for about 16 minutes, and disconnected. The local machine screen said Connection to xx.xx.xx.xx closed by remote host. Then I tried to connect the ...
-2 votes
0 answers
49 views

SSH hanging with Raspberry Pi

I have a RaspberryPi Model 3A+, with the Raspbian OS installed. I am trying to SSH from my laptop, into my Pi over my LAN. Initially I encountered no issues. I could ssh in fine, execute commands, etc....
0 votes
1 answer
68 views

Commands in the same line with sshpass not recognized

I was running a script normally. But suddenly, all the commands in the same line with sshpass started being not recognized. For instance: sshpass -p "$password" rsync -a -e "ssh -o ...
0 votes
1 answer
6k views

SSH / SFTP Permission denied (publickey)

I've added the following to my sshd_config Match Group sftponly ChrootDirectory /srv/sftpfolder ForceCommand internal-sftp #AllowTcpForwarding no PermitTunnel no X11Forwarding no I created "user&...
0 votes
2 answers
4k views

SFTP Default Folder & Limiting Access With chroot

I want to default a given user to a specific folder when they SFTP to my Ubuntu 18.04 machine. I also wanted to lock down SFTP a bit. This Digital Ocean post gave me what I needed, and helped me get a ...
6 votes
3 answers
27k views

RSA keys not authenticating

Just trying to get a basic setup of openSSH going on an Ubuntu box to work remotely. Main issue: RSA keys fail auth. ssh DOES work using the password for auth, but I would much rather limit it to only ...
2 votes
2 answers
7k views

OpenSSH - Restrict users to one or multiple folders

I want to know how I can restrict user access using OpenSSH Server. Let's say I want user 1 to only access /Media, /Documents, and his home folder, User 2 should only access /Folder21, and his ...
0 votes
0 answers
37 views

Ubuntu OpenSSH sftp server

I installed OpenSSH. Changed the sshd_config. Created a user. I created a user, but I get a error when connecting with WinSCP. Why? (Networkerror: Software caused a disconnect)
0 votes
1 answer
1k views

Installing openssh-server in Ubuntu-24.04 on WSL2

I just installed Ubuntu-24.04 from the Microsoft Store into WSL2 on my Windows 11 host. The first thing I wanted to install after logging in and upgrading the installation was openssh-server, but that ...
0 votes
0 answers
175 views

SSH Error:Permission denied, please try again

Recently, I installed a new Ubuntu 22.04 LTS and found that it worked the first time I logged in, but then it didn't! I did the following configurations, but the problem is not solved sudo vi /etc/ssh/...
19 votes
1 answer
125k views

SSH Server cannot be found - Even though installed

I have a machine running Ubuntu 18.04 LTS where I cannot seem to get SSH Server working. I installed SSHServer using: sudo apt install openssh-server but I am getting the following when I try to ...
-1 votes
1 answer
112 views

Delete old versions of sudo [duplicate]

Regards, I hope you be fine. I'm trying to close vulnerabilities in ubuntu, currently working with jammy jellyfish. A vulnerability that I'm closing is with sudo when I use the command dpkg -l or apt ...
0 votes
1 answer
4k views

SSH connections keep dropping

I have a server running Ubuntu server 12.0.4 with Openssh-server installed. I can connect to the server for about 30 minutes and then the connection drops. When I try to reconnect I get The remote ...
1 vote
2 answers
7k views

How to use rsync when root priviledges are needed on remote host?

Since root passwords and logins are not allowed on Ubuntu, how does one use ssh and rsync to move folders and files from a local host to a remote host when root privileges are needed on the remote?
2 votes
1 answer
1k views

SSH freezing moments after successfully connecting, then Broken Pipe

Sorry to ask about a topic that's been done to death, but I haven't found what I need yet. I've set up a lambda machine with an SSH server. I can connect to it from my laptop with ssh -l <username&...
-1 votes
1 answer
4k views

SSH using putty : Network error connection timeout

i am using Ubuntu server 20.04 lts i have configured static IP and can ping google.com and i can also ping server from another computer vice-versa. my ssh status is active and port 22 is listening but ...
0 votes
0 answers
579 views

I uninstalled openssh-client and all my snap application have been erased

I uninstalled openssh-client and i didn't see that another apps were uninstalled too. Now all my snap app like Reemina, atom, etc (all snap app that i've installed with ubuntu software gui) were ...
0 votes
1 answer
179 views

Is it expected to not have `rsyslog` installed after a fresh install of ubuntu server?

Is it expected to not have rsyslog installed after a fresh install of ubuntu server? If yes, where do logs that go to /var/log/auth.log actually go then? Here is what happened: I was looking for /var/...
7 votes
2 answers
5k views

What's the easiest way to install OpenSSH 7.4 on Ubuntu 16.04?

On Ubuntu 16.04 (Xenial) box, what is the easiest way to install OpenSSH (openssh-client) that is higher than 7.2? I am aware that I could compile from source, but I was wondering if there's a way to ...
61 votes
3 answers
56k views

Host alias for ssh

There are a few SSH destinations I will frequently be connecting to and I'm wondering if rather than remember the IP address I can create a host alias for them. I'd like to be able to use... ssh -p ...
3 votes
1 answer
293 views

How to delete users who are logged in

We tried to remove them by killing the processes but they are still there. This is how users appear can't access root pts/18 tmux(1804832).%13 can't access root pts/19 tmux(1804832).%...
0 votes
0 answers
44 views

How to Login to SSH with Dynamic username

I some external Gateway through which the ssh requests come and need to log the sessionID in the linux when the connection happens. I can send the sessionID (some string) along with the username while ...
0 votes
0 answers
179 views

Allow access to openssh server without authentication

First this is not a duplicate of any thread ive gone thru all of them and either solutions were not working for OPs or they werent working for me. I want to allow specific user to use my ssh server ...
1 vote
2 answers
9k views

Problems accessing a Cisco Router from Ubuntu 18.04 via SSH

I have an Ubuntu virtual machine (server) connected to a Cisco router where I'm trying to establish a SSH session to this device. They are connected back-to-back so there are no additional network ...
32 votes
4 answers
181k views

Start SSH automatically on boot

Completely brand new to linux and Ubnuntu. Setting up a machine to do deep learning/neural networks. So far it is going well. Got everything installed and running. I want to be able to ssh from my Mac ...
0 votes
0 answers
131 views

ssh tunnel general process on a phone -used as vpn -user limitation failed

I'm using a couple of vm's as an ssh tunnel-vpn for both android and iOS, using ssh clients on both OS's. so now i want to limit the number of sessions per each user in order for each user is limited ...
0 votes
0 answers
280 views

port 22: Connection refused, but only 60% of the time

I am running this: ssh_command = f'ssh -vvv -o StrictHostKeyChecking=no -i {private_key_file} ubuntu@{public_ip}' # Use os.system to execute the SSH command in a subshell os.system(ssh_command) ...
0 votes
1 answer
424 views

How to avoid Broken Pipe error from client side?

How do I prevent the Broken Pipe error from the client side of the ssh connection on ubuntu? Let's say that slurm is running on the server and I just made a salloc request. If the connection is broken,...
1 vote
0 answers
184 views

Bug with pasting root password to connect via SSH from Ubuntu 20.04 to Alma Linux 9 remote server

Summarize the problem Im running into a strange bug, by pasting the root password into the prompt while connecting via SSH from a Ubuntu 20.04. client to a AlmaLinux 9.2. remote server. Client: Ubuntu ...
1 vote
1 answer
2k views

ssh-copy-id has no effect [closed]

I'm trying to transfer my public key to my server. I've ran ssh-copy-id to do so but nothing really happened. Nor the .ssh nor the authorized_keys folder is made. The public key is not in my home ...
0 votes
1 answer
550 views

send_pubkey_test: no mutual signature algorithm

Here is the client log output after a ssh -vvv user@machine (I think this problem is related with the deprecation of sha-1). I have already tried to create a new key/par for ed25519, but it doesn't ...
2 votes
2 answers
1k views

Can't I scroll in the terminal up? Terminal shows only 24 rows? The scrollbar on the right fills the entire vertical height of the window?

Based on: Terminal output scrolling is gone (Headless 11.10 Server, Upgraded from 10.10) and https://superuser.com/questions/1331658/why-cant-i-scroll-in-the-terminal and my own dire situation right ...
4 votes
1 answer
146 views

Secure remote copy with exceptions

In order to use some data that are stored and produced remotely I first download them via scp servername:/.../big_directory/* ~/. There are many files and the command includes everything. These files ...
63 votes
9 answers
274k views

How do I install an SSH private key generated by PuTTYgen?

I set up my Linux server to accept connections from my home PC by adding the public key generated by PuTTYgen to the authorized_keys file. Now I'm trying to connect to the same machine, but this time ...
0 votes
0 answers
3k views

ssh no matching host key type found

I have 2 Ubuntu 22.04.3 LTS servers. Both are the same version. 1:chia@chia00:~$ cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.3 LTS" 2:chia@hp1:~$ cat /etc/os-releasePRETTY_NAME="...
21 votes
5 answers
166k views

ssh refusing connection with message "no hostkey alg"

My SSH connections worked well, but from last week SSH from my laptop to my board refusing connection. I can make a SSH connection from the board to laptop, but not vice-versa. I tried that with my ...
37 votes
17 answers
513k views

SSH error: Permission denied, please try again

I have an Ubuntu server setup using amazon ec2 instance. I need to connect my desktop (which is also a ubuntu machine) to the ubuntu server using SSH. I have installed open-ssh in ubuntu server. I ...
0 votes
0 answers
121 views

"ssh-copy-id user@ip_address" throws error

In UBUNTU system, I'm trying to set up remote login system. It is failing in ssh-copy-id step. It throws the following error: /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to ...
1 vote
1 answer
162 views

When Connecting To Remote Box SSH Fingerprint Changed After Upgrade from 18.04 to 22.04

I have a PHP script on my local box that connects to a remote box. Nothing on the remote box changed. And when I connect via the command-line, using the ssh command in a terminal, there was no change ...
0 votes
1 answer
413 views

what is the use of setting up OpenSSH on Ubuntu Live Server 22.04?

Setup Info I am using Hyper-V to spawn Ubuntu live 22.04 VMs. During the installation procedure it asks if I want to Install OpenSSH server, whether I select this option only results in one change. ...
0 votes
0 answers
2k views

SSH Connection Timed Out Ubuntu 20.04

I've looked through a million threads on this topic but nothing has worked. I'm trying to ssh into my linux through port 22. Connection is refused. UFW is inactive and firewall-cmd is not downloaded ...
0 votes
0 answers
29 views

failed to fetch libraries for openssh-server + Temporary failure resolving software sources [duplicate]

I tried many ways like tried to find here gone through http://in.archive.ubuntu.com folders.
1 vote
1 answer
420 views

How do I make ssh ask for the password every time?

I am using Ubuntu 22.04. This is an unusual question since most users want to make the ssh agent remember the password once it is entered per user session. I would like it to ask for the password ...
0 votes
1 answer
252 views

can not setup passwordless ssh using key by MANUALLY COPY public key to server

context: firstly, i got a new ubuntu 20.04 server with a password I'm using OpenSSH client on Windows 10 I want to do passwordless login, then I ssh to server using passwords, manually create ~/.ssh ...
0 votes
0 answers
45 views

Automatically disconnection on all port, including ssh and directadmin port

New to Ubuntu server for home, just start using it for a week and more. The server is connectable by ssh and port 2222 (directadmin port) after the system startup (power on/reboot) but after the ...
3 votes
1 answer
354 views

Unable to ssh over WAN

System: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal Openssh version: $ ssh -V OpenSSH_8.2p1 Ubuntu-...
6 votes
2 answers
12k views

How to install ssh keychain on Ubuntu with WSL

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 to use it. I'm taking some online training, and I've tried setting ...

1
2 3 4 5
11