Topic: Cant write ssh authorized_keys

"""
This is very important to setup public key access from vcPanel to this node. Otherwise vcPanel not able to communicate with your server.

# mkdir ~root/.ssh
# cd ~root/.ssh
# touch authorized_keys

Now copy your vcPanel public-key from the file /usr/local/vcpanel/key/id_rsa.pub of vcPanel master node to authorized_keys of your new node and save it.
""""

I cant do it... try to make with many things... i dont have permission to write the file autorized_keys.

I try to search this problem in lot of foruns... cant do it.

[root@server01 .ssh]# rm -rf authorized_keys
rm: cannot remove `authorized_keys': Operation not permitted
[root@server01 .ssh]#


i cant delete, cant write, cant do nothing.

Re: Cant write ssh authorized_keys

Hello,

Try to  remove the attributes as follows,

# chattr -ia  authorized_keys

Syslint Technologies | 24x7 Server Management | Outsourced Support | Software Development - (0091) 471-3273-211

Re: Cant write ssh authorized_keys

Hi,

I've found this one works much better

wget http://files.soluslabs.com/solusvm/scripts/keyput.sh
chmod a+x keyput.sh
./keyput.sh <destination_node_ip> <destination_node_port>

destination_node_ip = the ip of the node you want to transfer the virtual server to.

destination_node_port = the SSH port of the node you want to transfer the virtual server to.

This seems to be the same code as the one on this page on the openvz web site.

http://wiki.openvz.org/Ssh_keys

Jonathan Hamon

Re: Cant write ssh authorized_keys

Hello,

We added this  options as a todo feature.   Hope it will be in new release. If it will be in the add node page then this will be good right ?

Syslint Technologies | 24x7 Server Management | Outsourced Support | Software Development - (0091) 471-3273-211