sFTP access denied for root user

General support questions including new installations
Post Reply
ARIO
Posts: 7
Joined: 2015/05/26 21:36:16

sFTP access denied for root user

Post by ARIO » 2015/05/26 22:45:03

hi
I am extremely !!! newbie in centos

I installed CentOS v5.11 for using my bot [posts tv stuff automatically] , the author insisted on v5.xx of CentOS

now I must use CentOS ,
first days was indeed HELLLLL , now its just hell !!

I am admin of a huge governmental company

I have a question
I installed CentOS 5.11 on windows 2012 Hyper-V as a vps and i gave the ip and everything works nice
for first time it was fine until I gave the vps to my admin to install bot and now I cant login using sFTP [flashfxp]

I disabled firewall in the last phase of installation of CentOS
and in password authentication I removed MD5 , kerb... and ... ticks and i enabled only the last item which says network login is enough [or something]

I checked and I saw
/etc/ssh/sshd_config
# PermitRootLogin yes
its still in comment
also port 22 is in comment

first ,please tell me how i can edit this file in terminal [hyper-v CentOS terminal]
because when I defined
vi /etc/ssh/sshd_config
now i cant even edit
[honestly I just saw even that "vi" thing , and now when i press Backspace for deleting the comment character from "# PermitRootLogin yes"
nothing happens !!

can you please save me from my misery? and tell me how I can use sFTP and not getting access deny?

if not then I must bring someone to fix it
I wish I learned some about linux
I even dont know how to edit sshd_config in terminal?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: sFTP access denied for root user

Post by gerald_clark » 2015/05/27 00:13:20

The commented entries are the default values.
You do not need to edit that file.
Ssh works out of the box on CentOS.

Ask your admin what he did to disable it.

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: sFTP access denied for root user

Post by scottro » 2015/05/27 01:13:58

To get the vi basics is very quick.

http://heather.cs.ucdavis.edu/~matloff/ ... Intro.html

(Your experience isn't that unusual, there are various humorous posts about one's first vi session, as an example

http://bash.org/?795779

As Gerald pointed out, anything commented is a default, so it is running on port 22 and permitting root login. However, ssh and sftp are two different things.

However, judging from your posts, especially if this a production machine, it seems as if you're inexperienced, and if possible, you would better off bringing someone in. Frequently, a 2 minute tutorial by someone standing there will save someone hours of googling.
New users should check the FAQ and Read Me First pages

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: sFTP access denied for root user

Post by TrevorH » 2015/05/27 09:09:02

In addition, you should think twice before deploying new CentOS 5 instances. The end of life date for CentOS 5 is now less than 2 years away so in less than 2 years you will be reformatting and reinstalling those machines.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ARIO
Posts: 7
Joined: 2015/05/26 21:36:16

Re: sFTP access denied for root user

Post by ARIO » 2015/05/27 18:43:31

in other forums we can thanks users by giving them thanks or reputation
but I could't find it
thanks for your helps

you have no idea how frustrating is ,being MCSE [FULL certificates of MS] and not be able to do some basic stuff in linux

MS policy always was [isn't any more] avoiding linux stuff for its students
but now that hyper-v came MS changed its policy
now MS graduated students must know basic linux , and its good ,when i was 20 ys old learning was so easier than now that I am 41 ys old and i am involved with making money all my day time

@scottro: appreciated for vi commands

also I cant ask admin
I am the admin
also in that pertecular case I am owner too [thats why I dont wanna bring someone ,there is a script which worth it a lot, its safer I do by myself
but I see I must bring someone

Dr.ARIO

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: sFTP access denied for root user

Post by gerald_clark » 2015/05/27 19:03:23

it was fine until I gave the vps to my admin to install bot and now I cant login using sFTP
That is the admin you need to ask.

Post Reply