EvoTalk

Posts Tagged ‘ssh

19 三月, 2008

Ubuntu 7.1 Install sshd

Posted by: asd In: Unix

首先更新 apt-get
編輯 /etc/apt/sources.list,加入台大站台
view plain

CODE:

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-updates main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-updates main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-backports main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-backports main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-security main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-security main restricted universe multiverse

執行
apt-get update
安裝 sshd
apt-get [...]

Tags: ,

11 三月, 2008

Password-less Logins with SSH

Posted by: asd In: Unix| 科技新知| 軟體使用

 
Generate authentication key. Press enter when prompt.
ssh-keygen -t rsa
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys

Edit /etc/ssh/sshd_config, uncomment
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

Restart sshd
/etc/init.d/sshd restart

Login without password
ssh localhost

Tags:


  • BK: 大於和小於在今日更廣泛地使用於標籤上,故在此補充該英文用法: : angle bracket []: square bracket
  • luh1688: 非常實用且謝謝!~
  • asd: 好的,不過很久沒修改了,不知道能不能動 寄到您的yahoo信箱
  • LIANG: nice post, thank you
  • Justmaker: 您好,請問可以跟你要source嗎?我最近有在看股票,想要enhance您的小工具,不知是否可以開放?

Category