SSH 連線一直說 Permission denied (publickey) - Linux

By Carolina Franco
at 2016-05-25T15:55
at 2016-05-25T15:55
Table of Contents
我先是用了 ssh-keygen 產生 public key 和 private key
然後打 ssh-copy-id -i ~/.ssh/id_rsa.pub username@筆電IP
把 PasswordAuthentication 變成 no
PubkeyAuthentication 原本就是 yes
然後把 AuthorizedKeysFile 前面的井字號給拿掉
把 port 打開後重新啟動 ssh
但結果就是連不上
-----------------------------------------------------------------------
問題已解決,我 private key 和 public key 要給的對象搞錯了
--
然後打 ssh-copy-id -i ~/.ssh/id_rsa.pub username@筆電IP
把 PasswordAuthentication 變成 no
PubkeyAuthentication 原本就是 yes
然後把 AuthorizedKeysFile 前面的井字號給拿掉
把 port 打開後重新啟動 ssh
但結果就是連不上
-----------------------------------------------------------------------
問題已解決,我 private key 和 public key 要給的對象搞錯了
--
Tags:
Linux
All Comments

By Adele
at 2016-05-26T14:25
at 2016-05-26T14:25

By Jack
at 2016-05-27T03:00
at 2016-05-27T03:00

By Bennie
at 2016-05-27T14:07
at 2016-05-27T14:07

By Agnes
at 2016-06-01T07:23
at 2016-06-01T07:23

By Hazel
at 2016-06-03T06:45
at 2016-06-03T06:45

By Lucy
at 2016-06-04T09:25
at 2016-06-04T09:25

By Delia
at 2016-06-08T09:00
at 2016-06-08T09:00

By Valerie
at 2016-06-12T08:52
at 2016-06-12T08:52

By Harry
at 2016-06-15T21:50
at 2016-06-15T21:50

By Edwina
at 2016-06-20T16:09
at 2016-06-20T16:09

By Agatha
at 2016-06-25T01:12
at 2016-06-25T01:12

By Hedwig
at 2016-06-28T05:54
at 2016-06-28T05:54

By Erin
at 2016-06-29T22:23
at 2016-06-29T22:23

By Jessica
at 2016-07-02T11:53
at 2016-07-02T11:53

By Lauren
at 2016-07-06T21:56
at 2016-07-06T21:56

By Mia
at 2016-07-10T13:28
at 2016-07-10T13:28

By Aaliyah
at 2016-07-11T10:22
at 2016-07-11T10:22

By Edith
at 2016-07-12T09:58
at 2016-07-12T09:58

By Oliver
at 2016-07-17T03:53
at 2016-07-17T03:53

By Tom
at 2016-07-20T19:20
at 2016-07-20T19:20

By Frederica
at 2016-07-21T16:53
at 2016-07-21T16:53

By Quanna
at 2016-07-25T00:42
at 2016-07-25T00:42

By Faithe
at 2016-07-26T04:56
at 2016-07-26T04:56

By Zora
at 2016-07-31T02:10
at 2016-07-31T02:10

By Ivy
at 2016-08-03T01:07
at 2016-08-03T01:07

By Hedy
at 2016-08-05T07:56
at 2016-08-05T07:56

By Lily
at 2016-08-08T08:25
at 2016-08-08T08:25

By Genevieve
at 2016-08-11T23:08
at 2016-08-11T23:08

By Steve
at 2016-08-12T10:19
at 2016-08-12T10:19

By Isabella
at 2016-08-13T21:03
at 2016-08-13T21:03

By Kelly
at 2016-08-15T00:19
at 2016-08-15T00:19

By Frederic
at 2016-08-18T00:44
at 2016-08-18T00:44

By Jessica
at 2016-08-20T19:41
at 2016-08-20T19:41

By Rebecca
at 2016-08-21T01:20
at 2016-08-21T01:20

By Audriana
at 2016-08-23T02:35
at 2016-08-23T02:35

By Rachel
at 2016-08-24T22:53
at 2016-08-24T22:53

By Callum
at 2016-08-28T18:37
at 2016-08-28T18:37

By David
at 2016-09-01T19:08
at 2016-09-01T19:08

By Gilbert
at 2016-09-05T02:26
at 2016-09-05T02:26

By Heather
at 2016-09-07T14:09
at 2016-09-07T14:09

By Necoo
at 2016-09-11T19:36
at 2016-09-11T19:36

By Zanna
at 2016-09-14T20:21
at 2016-09-14T20:21

By Joe
at 2016-09-17T09:45
at 2016-09-17T09:45

By Bethany
at 2016-09-19T23:18
at 2016-09-19T23:18

By Rae
at 2016-09-21T10:20
at 2016-09-21T10:20
Related Posts
求救! 關於Ubuntu的dd問題

By Odelette
at 2016-05-25T11:57
at 2016-05-25T11:57
關於開發版選擇與商品化的問題

By Joseph
at 2016-05-25T10:36
at 2016-05-25T10:36
全字庫字形 AUR

By Caitlin
at 2016-05-25T00:56
at 2016-05-25T00:56
關於virtual box 開啟centos的問題

By Carol
at 2016-05-25T00:38
at 2016-05-25T00:38
m9u 插入電腦usb插槽馬上關機

By Kyle
at 2016-05-24T16:51
at 2016-05-24T16:51