[[email protected] ~]$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/sneha/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/sneha/.ssh/id_rsa.
Your public key has been saved in /home/sneha/.ssh/id_rsa.pub.
The key fingerprint is:
c8:50:db:0d:eb:cc:23:b3:8a:90:6c:32:80:e8:e2:cc [email protected]
The key's randomart image is:
+--[ RSA 2048]----+
| . . |
| . o + |
| . . o . |
|o o = |
|+ = S |
|+. + . |
|*+ . |
|Bo . . |
| E. . |
+-----------------+
[[email protected] ~]$ /home/sneha/.ssh/id_rsa.pub
bash: /home/sneha/.ssh/id_rsa.pub: Permission denied
任何人都可以幫忙嗎?我很確定我正在做所需的一切在創建SSH時獲取權限被拒絕