4 06 2012

putty openssh server refuse our key

bigCat Posted in Linux - Comment.isBlank

必须用openssh去创建公钥和私钥\r\n然后用puttygen去转换openssh的私钥为putty的私钥\r\n\r\n\r\n\r\n

cd ~/.ssh\r\nssh-keygen -t rsa \r\ncat id_rsa.pub > authorized_keys\r\nrm -f id_rsa.pub\r\nchmod 400 authorized_keys

\r\n\r\n

Host: (miao) | Word: Press | Code: HTML5