Re: centos7 :: ks.cfg :: customisation of sshd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 02/18/2016 10:27 AM, Mike - st257 wrote:
( You forgot to escape the space before 60000 in the first sed expression
you provided. )

True, but you shouldn't need to escape spaces at all:

sed -i 's/#Port 22/Port 60000/; s/#PermitRootLogin yes/PermitRootLogin yes/'

Though I will note there is some sort of syntax error with the
PermitRootLogin sed expression (present in the original you provided). I
spent a moment looking at it and the problem with that second expression
evades me right now.

I ran the command he provided and didn't see a problem.  What did you see?

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux