Must modify /etc/ with directadmin, without SSH (hosts.deny SSH problem)

lolopotu

New member
Joined
Sep 10, 2006
Messages
3
Is there a way to access /etc/ with direct admin since I have by a pretty stupid error remove all access to SSH in hosts.deny by writing sshd: ALL before writing my ip range in hosts.allow.

I have try to create an ftp account but it doesn't want me to give access to somewhere else than /home/admin/.

The error I got is :

ssh_exchange_identification: Connection closed by remote host

Thx for help.
 
Last edited:
You might be out of luck.
The closest thing is the Admin Level -> File Editor, but all files to edit have to first be in the:
/usr/local/directadmin/data/templates/edit_files.txt

The closest file in there by default is the /etc/ssh/sshd_config.
Perhaps if you change your ssh port to a port that isn't being blocked you might be able to figure it out. If course if it's a ful IP block on all ports, that would'nt help. If it's ssh only, then it might work.

John
 
as a side note, the:
/usr/local/directadmin/data/templates/edit_files.txt
file is overwritten with DA updates.. so if you have custom items, first copy the file to:
/usr/local/directadmin/data/templates/custom/edit_files.txt
and edit the copied fiile to add you own items. DA uses a higher priority for the custom file if it exists.

Note, if you want, you can add:
/usr/local/directadmin/data/templates/custom/edit_files.txt
to the:
/usr/local/directadmin/data/templates/custom/edit_files.txt
file, so that you can add more files to the list through the interface. Just note that it would basically mean that the "admin" account now has root access to everything on the server, hence we don't do that by default ;)

John
 
Back
Top