页面

显示标签为“ssh”的博文。显示所有博文
显示标签为“ssh”的博文。显示所有博文

2011-01-21

auto start ssh service on debian desktop environment

For the moment, `f' option must be used:
# update-rc.d -f ssh defaults

2008-05-07

ssh-keygen使用

ssh-keygen是生成RSA或DSA密钥对的工具,以达到保证数据完整性的目的。实际使用中可以避免每次ssh都输入用户口令。首先在本地生成密钥对:
$ ssh-keygen -t rsa
t指明生成密钥类型。执行该指令时,不要输入口令。默认会在~/.ssh/目录下生成密钥对id_rsa和id_rsa.pub。然后将公钥id_rsa.pub复制到远端机器的(ssh用户的)~/.ssh/目录下,并更名为authorized_keys。如果authorized_keys已经存在,则用cat指令将authorized_keys、id_rsa.pub合并为authorized_keys:
$ cat id_rsa.pub >> authorized_keys

禁止root使用SSH

编辑文件/etc/ssh/sshd_config:设置PermitRootLogin参数为no。