kulcs másolása távoli gépre code example
Example: kulcs másolása távoli gépre
cat ~/.ssh/id_rsa.pub | ssh user@host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh user@host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" | ssh user@host "chmod 700 ~/.ssh/authorized_keys"