ssh auto login without password

#
# run to get /etc/ssh_config, /etc/sshd_config
ssh-host-config

# run to get ~/.ssh/id_rsa.pub
ssh-user-config

# append id_rsa.pub to remote key store
cat ~/.ssh/id_rsa.pub | ssh user@host "cat >> .ssh/authorized_keys"

沒有留言:

quick ways to initialize a list of numbers or strings in java

Java 快速建立整數與字串清單的寫法 在 Java 中,建立 List<Integer> 與 List<String> 是非常常見的需求。 以下依照不同 JDK 版本,整理出幾種 快速建立可修改(modifiab...

總網頁瀏覽量