Any way to reenable SSH or telnet from WHM? i'm looked out!

kalavera

Member
Feb 13, 2003
10
0
151
The subject says it all!! I have tried the "fix" to openssh and i have changed ssh configuration file to disable ssh (big mistake!)

Now i don't have ssh access to my box.

Any way to reenable it?

I have tried almost anything, restart service, force reinstall of openssh (via whm) and nothing ....


Please help.

Thanks

cPanel.net Support Ticket Number:
 

kalavera

Member
Feb 13, 2003
10
0
151
i have tried that script but nothing .... i don't have permitions to change the sshd_config file :(

the problem is that i don't have an ftp account with access to the root

i have tried but i can't find a way to create one with whm/cpanel

if anyone else as more ideias .... thanks in advance

cPanel.net Support Ticket Number:
 

jamesbond

Well-Known Member
Oct 9, 2002
738
1
168
Originally posted by kalavera
i have tried that script but nothing .... i don't have permitions to change the sshd_config file :(

the problem is that i don't have an ftp account with access to the root
You should be glad that your server can't be easily hacked with this script :)

Why don't you contact your datacenter?

cPanel.net Support Ticket Number:
 

kalavera

Member
Feb 13, 2003
10
0
151
but there isn't a way to create an ftp account that as root access ??

i just need to delete or edit sshd_config

The problem is that my host asks me for money everytime that they have to fix some dummy problems created by the user. I know that is bad but for the price .....

So i need to solve this problem in order to be able to run scripts like easyapache (btw there is anyway to runit from web interface?)

cPanel.net Support Ticket Number:
 

kalavera

Member
Feb 13, 2003
10
0
151
i have tried to "play" a bit more with some web-telnet scripts but the big problem is that they run as user nobody, so no permissions! and i can't use the su command.

So the question is ... can't i force the script to run as a determinate user? (like root!) giving the correct password ofcourse.

cPanel.net Support Ticket Number:
 

mpierre

Well-Known Member
Jun 30, 2002
196
0
166
You could I guess add a wheel user, and do a SU to get root access...

And you can define wheel users in WHM

cPanel.net Support Ticket Number:
 

kalavera

Member
Feb 13, 2003
10
0
151
i have tried to wheel a user ... but the scripts always run as nobody user .... (i even tried to wheel the "Nobody" user) ... so i don't have permissions to run su .

Maybe i'm doing something wrong installing the script or so.
I have installed it in the cgi-bin dir of a personal account i have in the server. But the script tell's me that it is nobody user that is running ... (with the command "whoami")

Another solution ?

cPanel.net Support Ticket Number:
 

kalavera

Member
Feb 13, 2003
10
0
151
forget the previous post (but i can't delete it or edit it)

the problem was that i was using a php script similar to cgi-telnet but because phpsuexec isn't configured in my server it runs php scripts like nobody.

after trying again with cgi-telnet 1.0 i was able to run su but a new problem existed ... it gives me this message :

"standard in must be a tty"

somebody can help me with this?

thanks

cPanel.net Support Ticket Number:
 

kalavera

Member
Feb 13, 2003
10
0
151
thanks

thanks to all !! i have resolved my problem. thanks.

someone can close the thread.

cPanel.net Support Ticket Number:
 

ivaserver

Well-Known Member
Aug 9, 2002
111
0
166
I Have the same problem with ssh.conf

how did you solve this please?

I cannot su using cgitelnet

Thanks
Ivaserver