Search found 150 matches

by billwest
2019/11/05 12:48:52
Forum: CentOS 6 - Security Support
Topic: root user.
Replies: 23
Views: 3392

Re: root user.

You might want to use

su - "username"

not sudo,

if your intention is log use anther user's login/environment.

Simply using:

su -

with place you in root's shell.

"exit" to get out.
by billwest
2019/11/05 12:46:17
Forum: CentOS 6 - Security Support
Topic: Why these ports are open?
Replies: 10
Views: 1501

Re: Why these ports are open?

So you ran nmap on the server you are testing?

Because:

-A INPUT -i lo -j ACCEPT

will accept anything on localhost.
by billwest
2019/11/05 12:41:11
Forum: CentOS 6 - General Support
Topic: Logout a SSH user.
Replies: 6
Views: 921

Re: Logout a SSH user.

When I see users with the same name (could be me), I prefer to go about logging one off in a longwinded way.

Commands I use:

who
who am i
ps -A | grep bash

All of this should get you the users' bash PIDs.

Then kill -9 'relevant PID'.

Works for me.
by billwest
2019/06/05 09:37:00
Forum: CentOS 7 - General Support
Topic: Erratic sshd start
Replies: 9
Views: 1525

Re: Erratic sshd start

Seems the problem is solved - I disabled sshd.socket.
by billwest
2019/05/29 12:03:31
Forum: CentOS 7 - General Support
Topic: Erratic sshd start
Replies: 9
Views: 1525

Re: Erratic sshd start

Log files duly inspected in great detail.
All they revealed was "Deprecated option RSAAuthentication".

So I commented out the relevant entry for that in sshd_config.
I also set "UseDNS no".

So far so good.
by billwest
2019/05/28 00:56:40
Forum: CentOS 7 - General Support
Topic: Erratic sshd start
Replies: 9
Views: 1525

Re: Erratic sshd start

Yesterday, after more than an hour, I still could not ssh to the server.
I have tried this with firewall on and off, no difference.
by billwest
2019/05/23 09:09:40
Forum: CentOS 7 - Networking Support
Topic: Attackers getting past IPTables
Replies: 16
Views: 1231

Re: Attackers getting past IPTables

OK, so noted. Thanks.
by billwest
2019/05/23 06:42:22
Forum: CentOS 7 - General Support
Topic: Erratic sshd start
Replies: 9
Views: 1525

Re: Erratic sshd start

Thanks Trevor, that could be it.
I am sometimes able to log in via ssh after a while (upto 10 mins).
I'll give it some more time. I have looked at log files but see nothing untoward.
However, your explanation of services starting in parallel tells me a lot.

Bill.
by billwest
2019/05/23 01:19:10
Forum: CentOS 7 - Networking Support
Topic: Attackers getting past IPTables
Replies: 16
Views: 1231

Re: Attackers getting past IPTables

I generally put:

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

as one of my last lines in the INPUT section.
by billwest
2019/05/23 01:14:08
Forum: CentOS 7 - General Support
Topic: Erratic sshd start
Replies: 9
Views: 1525

Erratic sshd start

HI, I have a Centos 7 (fully updated) running, but not 24/7. When I boot the system, I generally log in to it (Putty ssh) from my desktop PC (Win7). However, I am not always successful in doing so. Quite often the sshd service isn't running, even though I have set it to start at boot time. I then ne...

Go to advanced search