Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views
+50

kex_exchange_identification: read: Connection reset by peer when deploying to Centos 9 stream

I'm using Deployer PHP v7 to deploy my project to my server into multiple folders (although this isn't specific to Deplyoer) My server is Centos 9 Stream. I need to deploy my project into multiple ...
Ryan H's user avatar
  • 49
0 votes
0 answers
56 views

SSH tunel on Linux

I am creating an SSH tunnel with this command: ssh -L 0.0.0.0:9944:localhost:9922 localhost -N -p 8844 It works great, no problems. But, for some reason, when I execute this command above in my ...
Samul's user avatar
  • 316
0 votes
1 answer
497 views

Cannot ssh into my vps ipv6 ip : Network is unreachable

The dashboard of my hosting company regxa provides me with a root password and ipv6 address to my CentOS server, no ipv4 I have tried using both putty and ssh cmd in my linux machine to connect to the ...
Rachel1983's user avatar
1 vote
4 answers
297 views

OpenSSH Requires Password AND Public Key!

I've inherited an old CentOS-6 system with OpenSSH 5.3 installed. And OpenSSH is behaving oddly: Currently the daemon requires the use of a public key and a password in order to login. (It's been this ...
Eric Pretorious's user avatar
0 votes
0 answers
145 views

Connecting to another server by bash script

On server A I have a script in bash with a conditional. If the conditional is true, a connection is made to server B and httpd is reloaded. The script runs in cron and everything works correct. I don'...
ufo1990's user avatar
0 votes
1 answer
53 views

Can openssh daemon count key failures separately from password failures?

Recently the max number of auth for ssh was reduced on some servers at my work from 6 to 3 to comply with new security restrictions. Most of us in IT are seeing "too many failures" and no ...
elyograg's user avatar
  • 249
1 vote
0 answers
210 views

How to change Public Key in Oracle Cloud

I have CentOS running on AMD and Ubuntu running on ARM services on Oracle cloud. Previously, I shared my private key (used for connecting SSH/Putty) with my freelance developer. However, over a month ...
Mehul Kumar's user avatar
0 votes
0 answers
430 views

How to diagnose out of space errors?

Twice I've noticed out of space errors in my php app and both times I've received the error "No space left on device while writing config" when attempting to login via ssh to troubleshoot ...
Dan Bray's user avatar
  • 113
3 votes
0 answers
454 views

Unable to su or ssh as anyone but root on CentOS 7

I seem to be unable to ssh or su as a local user on my CentOS 7 machine as of today. $ adduser ndejay $ passwd ndejay Changing password for user ndejay. New password: Retype new password: $ su ndejay ...
Nicolas De Jay's user avatar
0 votes
1 answer
494 views

ssh could not connect to the server, and disconnected after providing the username. Logs for sshd-ddd and ssh-vvv are provided below

The original text is in Chinese, translated into English using Google Translate. premise Because of the need to upgrade glibc2.28 to glibc2.29, and later required too many dependencies, the upgrade ...
ahaly's user avatar
  • 11
-1 votes
1 answer
890 views

PermitRootLogin set to no but can still use root on Centos Stream 9

Im following an RHCSA training course and to disable root I need to set PermitRootLogin to no in the /etc/ssh/sshd_config file and restart sshd using systemctl. I've done all this and can still login ...
Hassam Dauhoo's user avatar
0 votes
2 answers
1k views

Couldn't resolve host name for http://vault.centos.org/centos/8/AppStream/

Every time I run a command on my virtual server, I get the following error centos8 [root@servers03 ~]# dnf install epel-release CentOS Linux 8 - AppStream 0....
sanja's user avatar
  • 1
0 votes
1 answer
1k views

i want to restrict all commands for user except ssh command

I am a root user and don't want that users can execute all linux command except ssh. They only have to use ssh command in their user. How to do that? please anyone help.
Rushikesh Sakharle's user avatar
4 votes
2 answers
3k views

Cannot use 2FA due to <Disabled method "keyboard-interactive"> even when it is enabled

I'm trying to enable google 2FA using package fedora google-authenticator (https://github.com/google/google-authenticator-libpam). This is my /etc/ssh/sshd_config: # $OpenBSD: sshd_config,v 1....
Siddharth's user avatar
  • 143
1 vote
1 answer
5k views

Error opening terminal: unknown when executing nano

I have nano installed on a CentOS 7 VPS. When trying to open a file using nano, such as sudo nano /etc/vsftpd/vsftpd.conf, i get Error opening terminal: unknown. I am using Termius to access my VPS ...
Bowis's user avatar
  • 113
0 votes
0 answers
195 views

CentOS 7 - disable all services, except ssh and networking

This is a follow up question to Disable all services, except ssh. I want to achieve the same thing on CentOS 7 but I'm having trouble getting it to work. I've created /usr/lib/systemd/system/...
willdashwood's user avatar
0 votes
2 answers
643 views

Ensure a user can only SSH to the port they have been designated

CentOS 6 I want port 22 to be used for normal SSH access and for port 8822 to be used for jailed SFTP. Here's my sshd_config configuration Port 22 Port 8822 PermitRootLogin no PubkeyAuthentication no ...
supmethods's user avatar
0 votes
1 answer
6k views

How to enable legacy ciphers in modern SSH client [duplicate]

Got a shiny new OL9 and I need to connect to some legacy servers, as in CentOS 5. The OL9 SSH client does not support the legacy ciphers that CentOS 5 supports: [opc@vm1 ~]$ ssh legacyServer Unable to ...
Emilio P's user avatar
0 votes
1 answer
661 views

pam radius bypass same local user (exception user)

Pam Radius login works with the following configuration. However, it would be necessary for some users to perform local authentication. How can I solve this? [xxxxxxxxxxx ~]# cat /etc/pam.d/sshd #%PAM-...
dilen7's user avatar
  • 1
9 votes
4 answers
21k views

How can I use a legacy ssh-rsa key on CentOS 9 Stream?

I am setting up a new CentOS 9 Stream container as a part of a CI system. It needs to make an SSH connection to download some code from a legacy Git host using an ssh-rsa key (which is considered an ...
ddulaney's user avatar
  • 301
1 vote
1 answer
2k views

Unable to change SSH port on Almalinux/CentOS 8 with selinux present

I am trying to change the SSH port on a VPS using Almalinux. I followed this guide but have not been able to. These are the output I receive when try to SSH using both 22 and the new port respectively....
Rashiq's user avatar
  • 115
4 votes
4 answers
35k views

Why is SSH disconnecting with 'ssh_dispatch_run_fatal: Connection to x.x.x.x port 2020: Connection corrupted'?

I'm trying to figure out why I keep getting disconnected from my SSH session. The host is a CentOS server and the clients are MacOS. The error seems to be sporadic - sometimes it's once an hour, other ...
Leonard Challis's user avatar
0 votes
0 answers
438 views

Cannot ssh into virtualbox centos from mac os x catalina

I have virtualbox installed on a Mac OS X Catalina host. I have got the Centos 9 guest os running on virtual box. For centos, i have used NAT in networking options, and mapped 2222 to 22. I cannot ssh ...
manu muraleedharan's user avatar
2 votes
1 answer
5k views

QEMU/KVM guest VM cannot resolve DNS hostnames or SSH/ping from host

I have a QEMU/KVM-based virtual machine with CentosOS 6.4 that cannot fully connect to the Internet. I can ping IP addresses (ex. ping 8.8.8.8 works successfully), but domain names are not resolved (...
Skatech's user avatar
  • 23
8 votes
4 answers
8k views

How can I run a shell as a user that has no shell access?

Maybe I'm not using the right terms so allow me to explain myself using an example. Connecting over SSH as user "centos" and executing cat /etc/passwd in my Centos7 machine I get: centos:x:...
DomingoSL's user avatar
  • 395
2 votes
2 answers
12k views

How do I disable sshd algorithms?

From my vulnerability scanning software I get this flag/message The following weak key exchange algorithms are enabled : diffie-hellman-group-exchange-sha1 diffie-hellman-group1-sha1 I want to ...
Ruth Edges's user avatar
0 votes
2 answers
1k views

Require root password when executing "sudo -s"

I have a CentOS 7 server on AWS. When logged in with the centos user, how can I prevent sudo -s logging in to root without requiring root's password? [root@server ~]# cat /etc/sudoers | grep rootpw ...
Nuno's user avatar
  • 653
3 votes
3 answers
25k views

SSH Timeouts with ClientAliveInterval and ClientAliveCountMax

What I want to accomplish is to simply terminate inactive SSH sessions. Just because the user is logged in does not mean that the user is doing something. I need the SSH daemon to logout users after X ...
puma's user avatar
  • 31
1 vote
1 answer
558 views

Quick, successive SSH connection attempts hanging

I have a bash script which copies small files in succession using scp. So there are a bunch of scp commands in this script. An SSH key is being used to authenticate to the other server. Because the ...
Marcus's user avatar
  • 195
1 vote
1 answer
4k views

SSH looks connect but password prompt not come

When SSH clients try to connect CentOS 7 openssh-server waiting for password prompt but never comes. When I debug, connection log and netstat shows connection established. Here is my client debug: ...
Tevfik Ceydeliler's user avatar
0 votes
1 answer
2k views

systemctl hangs when starting sshd, but "/usr/sbin/sshd -D -f /etc/ssh/sshd_config &" works

CentOS 7. Here's /usr/lib/systemd/system/sshd.service [Unit] Description=OpenSSH server daemon Documentation=man:sshd(8) man:sshd_config(5) After=network.target sshd-keygen.service Wants=sshd-keygen....
debugman's user avatar
0 votes
0 answers
161 views

Allow users in chroot to SSH to another VM instance

Been coming across some issues with setting up SSH from a chroot directory out to a secondary VM. This is all being done in Google Cloud at the moment using CentOS 8. I think I have created the chroot ...
rk92's user avatar
  • 101
1 vote
1 answer
141 views

deprecated 'sshKeys' metadata item | centos | latest guest environment already installed

When login into GCP VM from browser i get a popup saying The VM guest environment is outdated and only supports the deprecated 'sshKeys' metadata item. Please follow the steps here to update. A: I ...
Bhuvan's user avatar
  • 115
0 votes
0 answers
430 views

Is it correct to update the GLIBCXX / GLIBC on a shared hosting server?

I'm having issues updating node.js for a single user in a shared hosting server, which is being installed by NVM package.Whenever we try to switch versions to a newer one, this error is displayed: ...
SthefanyRangel's user avatar
2 votes
1 answer
280 views

How does OpenSSH / NSS determine the address to use for a hostname with multiple DNS entries?

Suppose I have some device with multiple addresses like so (due to some combination of AD and VMWare NAT name resolution, but that's not germane): [centos@localhost ~]$ getent hosts my-weird-AD-device....
javanix's user avatar
  • 247
1 vote
0 answers
240 views

Email notification for failed SSH login

Can someone tell is there a way to receive an email for failed SSH login? I already have Fail2Ban but as understood I can receive only email's for banned IP's ... Using CentOS 7 Thank you in advance.
Milen Todorov's user avatar
1 vote
0 answers
218 views

SFTP is not successfully connecting to some clients, error is returned

I have an SFTP server installed on Centos 8. First, I created a group sftpusers and users (with passwords) in it. I added following lines in /etc/ssh/sshd_config file: Port 22 Port 33000 ... #...
coding's user avatar
  • 111
1 vote
1 answer
329 views

How can I share the SSH keyes between two users on a CentOs 7 machine?

I am not a sysadmin\network specialist (I am s software developer) and I am finding the following difficulty working on a Linux CentOS 7 remote machine of a customer. I am using MobaxTerm to connect ...
AndreaNobili's user avatar
1 vote
1 answer
204 views

Problems after changing SSH port

I'm trying to SSH into a CentOS7 server using a specific port. The following rules are the iptables rules: iptables -P INPUT DROP iptables -P FORWARD DROP Allow appropriate ports IN, OUT and FORWARD ...
student's user avatar
  • 11
2 votes
4 answers
6k views

Windows SSH into CentOS using Private Key - Not working

I'm on Windows 10. Need to ssh into a Linux CentOS server. Trying both Putty and Windows SSH (turned on in Features.. Powershell?). Using PuttyGen, I generated a private & public RSA key pair - ...
d-_-b's user avatar
  • 191
5 votes
0 answers
5k views

GitHub SSH action failing: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

I have recently rented a VPS running CentOS 8. I want to make countinuous deployment from one of my repos, so that when I push to main the repo is updated. I followed this tutorial on a fresh CentOS ...
mianfg's user avatar
  • 51
0 votes
1 answer
2k views

End SSH Sessions even when NO-OPs are being sent by clients

We are trying to find a good way to disconnect SSH sessions to our servers when users are leaving their SSH sessions connected when they go home for the day. The SSHD timeout settings (...
StarKev2525's user avatar
0 votes
1 answer
713 views

centos 8 ssh remote server asking password despite PubkeyAuthentication yes

I am trying to connect remote host from client computer without password (with password works perfectly) On client computer I did following but when I try to connect ssh, still asking password. anyone ...
danone's user avatar
  • 166
0 votes
1 answer
1k views

sshd doesn't show failed login attempts in syslog on CentOS 7

after some tinkering with rsyslog, sshd no longer logs information about failed login attempts to syslog for some reason. I've returned both sshd and rsyslog configs back to where it was: rpm -V $(rpm ...
Wasil W. Siargiejczyk's user avatar
0 votes
0 answers
196 views

SSH login through the VMware Workstation NAT is closed immediately

I have three VMs that are setup with the VMware Workstation: VM1 (CentOS 6, 192.168.230.128) VM2 (CentOS 7, 192.168.230.129) VM3 (CentOS 8, 192.168.230.130) Host machine has public IP 192.168.100.1. ...
CAPS LOCK's user avatar
  • 101
0 votes
1 answer
1k views

How can I work out what is filtering a port in CentOS 7?

I recently did a yum update and reboot, and now I can't SSH into my machine. I use a non-standard SSH port (let's say 444) and when I run nmap <MY-IP> -p444 --reason I get 444/tcp filtered ...
Codemonkey's user avatar
  • 1,148
-3 votes
1 answer
410 views

Downgarde CentOS 7+ to CentOS 6 [closed]

I've been doing some research and most of forum I've read so far say that there's no way to go down from 7 or 8 to version 6. I did follow a guide and they said this notice: Note: The following steps ...
Imad Oulhou's user avatar
0 votes
0 answers
65 views

centos opens only 505 ssh remote tunnels?

to evaluate how many ssh tunnels does centos 8 support, I write an app on windows that initiates ssh reverse tunnel to centos 8 through a loop var session = ssh("centos", "user1", &...
geek11's user avatar
  • 3
3 votes
1 answer
460 views

How can I use different ssh keys for user1@host and user2@host, without resorting to aliased hostnames?

I have a remote CentOS server, lets pretend it's called hostname.com hostname.com has several user accounts, and I want to ssh into this server as any one of these users (using ssh keys rather than ...
carpii's user avatar
  • 561
0 votes
1 answer
5k views

How to ssh into CentOS 7/8 VirtualBox VM from MacOS

How to ssh into CentOS 7/8 VirtualBox VM from MacOS I have installed a CentOS 7 VM from osboxes.org on Oracle VirtualBox on my Mac. I need to be able to ssh into the VM from the Mac. I have tried to ...
adbdkb's user avatar
  • 109

1
2 3 4 5
10