Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
210 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
8 votes
4 answers
9k 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
  • 415
2 votes
2 answers
13k 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
  • 673
1 vote
1 answer
334 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
4 answers
3k views

How to hide tempfs from the df output on CentOS 7 in ssh?

I know this can be done because I've done it before on previous servers but I forgot how and web searches did not come up with the result. I know what tmpfs is and that you should not remove it. What ...
user avatar
0 votes
1 answer
2k views

sshd is not honoring sshd_config settings

I am adding the following settings to my docker based centos 7 /etc/ssh/sshd_config file: Match User ansible PermitEmptyPasswords yes PasswordAuthentication no PermitRootLogin ...
E.S.'s user avatar
  • 155
2 votes
1 answer
123 views

How to setup ssh for a couple of servers?

I'm pretty confused about how ssh really works, and I have already asked a couple of questions related to this, but I suspect I'm going in the XY-problem trap. So, what I want is this. I want to be ...
klutt's user avatar
  • 167
0 votes
1 answer
110 views

Is there any security issue when SSH log in user without home directoty?

My system is centos 7. My purpose is enhance server security,only let sshuser log in and then su root. I create a user only for SSH login by useradd -M -u 888 sshuser. I also set AllowUsers sshuer ...
kittygirl's user avatar
  • 995
0 votes
1 answer
1k views

Putty not showing full path?

Pretty sure this is a stupid question, but I can't seem to find the answer anywhere... When I use some command lines in Putty, (like top -c) the output is not complete, and I can't see the whole ...
M. Olly 's user avatar
1 vote
1 answer
2k views

How to turn off read-only mode in OpenSSH's sftp-server subsystem

Our PCI-compliant CentOS 7 system got flagged by Trustwave as FAILED recently due to an OpenSSH vulnerability tagged as CVE-2017-15906, and was told that "OpenSSH sftp-server allows creating zero-...
averysphere's user avatar
0 votes
0 answers
1k views

SLURM, SSH, adn NOHUP Behaviour

I am the administrator of a cluster running on CentOS and using SLURM to send jobs from a login node to compute nodes. Recently, a user complained about some unexpected behaviour with their jobs. If a ...
TheOneHyer's user avatar
2 votes
0 answers
11k views

Starting sshd in a Centos 7 OS Docker Container on docker run using both ENTRYPOINT and CMD

I know I can start sshd with CMD ["/usr/sbin/sshd","-D"] in a CentOS 7 base Docker container with docker run <debug_container_id> because I have seen it done elsewhere https://stackoverflow....
Brian's user avatar
  • 331
2 votes
1 answer
2k views

Force password for ssh login

I have two servers with CentOS6 and CentOS7. Both of them has SSH access. My client computer has Ubuntu 16.04. For CentOS6 I can login with command ssh -i ~/.ssh/serv1 root@serv1 but command ssh ...
venoel's user avatar
  • 193
4 votes
1 answer
10k views

SSH fails after Port change on CentOS 7

After changing the port. And restarting the SSH service, it failed on me. I got the following info when I ran systemctl status sshd.service: sshd.service: main process exited, code=exited, status=...
Nikk's user avatar
  • 239
4 votes
2 answers
11k views

Remote SSH command hangs, but only when executed through Jenkins

Disclaimer: I'm a bit new to the community, please be gentle :) I'm having an SSH issue that I just can't seem to explain. As a bit of background, here's the problem that I'm solving: There are ...
cerberus's user avatar
  • 322
1 vote
1 answer
236 views

CentOS - Pubkey Auth doesn't work for user in /var

I've been working through a problem for the past week or so and I am running out of ideas. I added a new user on my Centos 7 VPS for a git server, and (under the advice of several articles) placed ...
forresthopkinsa's user avatar
3 votes
2 answers
15k views

Cannot ssh with shared keys on CentOS 7 server refused our key

I cannot ssh to a CentOS 7 server using pre-shared keys, I get a "server refused our key" message. Below is an ssh attempt using -vv OpenSSH_7.2p2, OpenSSL 1.0.2h-fips 3 May 2016 debug1: Reading ...
feub's user avatar
  • 169
2 votes
1 answer
2k views

SSH connection is slow and buggy when connected by IPv6

I noticed that my SSH session is not usable (random connection errors, hugh delay, etc.) when I'm connected by IPv6. I'm not connecting to my server by IPv4/IPv6 addresses directly. I use my domain ...
LuMa's user avatar
  • 257
14 votes
4 answers
23k views

Can connect via SSH - but not via SFTP? Exit status 127

Unfortunately I can not connect via sftp to my VPS: This is my sshd_config: # Package generated configuration file # See the sshd_config(5) manpage for details # What ports, IPs and protocols we ...
MyFault's user avatar
  • 953
1 vote
0 answers
861 views

LXC SSH too slow in CentOS7

I have a newly created centos7. I installed the LXC and create a configuration: lxc.network.type = veth lxc.network.link = lxcbr0 lxc.network.hwaddr = fe:84:8b:f1:76:8e lxc.network.flags = up lxc....
PumpkinSeed's user avatar
-5 votes
2 answers
592 views

Using same port for http/ ssh on two ip's [closed]

How could use two diferent services using the same port on two diferent IP addresses? Example: IP 1 : 192.168.10.10: Service: Http Server Ports: 443 IP 2 : 192.168.10.11: Service: SSH Server ...
thclpr's user avatar
  • 155