本地ssh非标准端口时,连接github.com

针对公网上的服务器的检查,在日志中会发现大量针对22端口(ssh)的非法扫描。为了增强安全性,减少这些扫描,我们将服务器的ssh端口改成了一个非标准的端口。

这时,连接github时,会出现错误,无法连接:

#git pull
ssh: connect to host github.com port xxxxx: Connection refused
fatal: The remote end hung up unexpectedly

解决方法,编辑一个 ssh 的config文件:

$vim ~/.ssh/config
Host github.com
HostName github.com
Port 22

测试一下:

$ssh  -T git@github.com
Hi pubyun! You've successfully authenticated, but GitHub does not provide shell access.
$git pull
Current branch master is up to date.
此条目发表在DEVOPS分类目录。将固定链接加入收藏夹。

本地ssh非标准端口时,连接github.com》有 84 条评论

  1. Pingback引用通告: Google

  2. Pingback引用通告: gay hub

  3. Pingback引用通告: 1xbet ug

  4. Pingback引用通告: thrusting dildo

  5. Pingback引用通告: anal suppository

  6. Pingback引用通告: 메리트카지노

  7. Pingback引用通告: 우리카지노

  8. Pingback引用通告: how to enjoy g spot sex toys

  9. Pingback引用通告: Trans Hub Porn

  10. Pingback引用通告: xnxx

  11. Pingback引用通告: GayHub

  12. Pingback引用通告: french bulldog puppies for sale

  13. Pingback引用通告: Mining

  14. Pingback引用通告: MILF Porn

  15. Pingback引用通告: Online Advertising

  16. Pingback引用通告: singapore top broker

  17. Pingback引用通告: 샌즈카지노

  18. Pingback引用通告: 메리트카지노

  19. Pingback引用通告: AnaGlobal

  20. Pingback引用通告: voyage en cargo

  21. Pingback引用通告: cbd oil

  22. Pingback引用通告: best cbd gummies

  23. Pingback引用通告: cbd oil for dogs

  24. Pingback引用通告: best cbd gummies

  25. Pingback引用通告: prostate vibrating massager

  26. Pingback引用通告: white maeng da kratom

  27. Pingback引用通告: working visa

  28. Pingback引用通告: 코인카지노

  29. Pingback引用通告: buy cbd oil

  30. Pingback引用通告: software buy

  31. Pingback引用通告: Buy Real Weed Online Cheap

  32. Pingback引用通告: Mzadaty

  33. Pingback引用通告: BUY OPANA 40MG

  34. Pingback引用通告: masturbating

  35. Pingback引用通告: Kansas Fake driver's license

  36. Pingback引用通告: Can I buy Codeine online

  37. Pingback引用通告: kratom for sale

  38. Pingback引用通告: kratom for depression

  39. Pingback引用通告: 우리카지노

  40. Pingback引用通告: 퍼스트카지노

  41. Pingback引用通告: BIG CHIEF EXTRACTS

  42. Pingback引用通告: new no deposit casinos 2020

  43. Pingback引用通告: Google

  44. Pingback引用通告: yorkie puppies for sale

  45. Pingback引用通告: Manufacturing Recruitment Firm

  46. Pingback引用通告: safestore auto

  47. Pingback引用通告: free download for laptop

  48. Pingback引用通告: download full version pc games

  49. Pingback引用通告: apps download for windows 10

  50. Pingback引用通告: singapore divorce lawyer

  51. Pingback引用通告: mp3juice

  52. Pingback引用通告: New Mexico Fake driver's license

  53. Pingback引用通告: big canvas art

  54. Pingback引用通告: pure amphetamine

  55. Pingback引用通告: psilocybe cubensis grow kit usa

  56. Pingback引用通告: click here

  57. Pingback引用通告: Pc reparatur jona

  58. Pingback引用通告: thc vape juice

  59. Pingback引用通告: Herbal incense

  60. Pingback引用通告: canada online

  61. Pingback引用通告: Shoes

  62. Pingback引用通告: guns for sale near me

  63. Pingback引用通告: pinball machines for sale in michigan

  64. Pingback引用通告: euro modular buildings for sale

  65. Pingback引用通告: Canada Pharmacy Canada Pharmacy

  66. Pingback引用通告: definews

  67. Pingback引用通告: Buy Methyltrienolone Powder

  68. Pingback引用通告: canada drugstore

  69. Pingback引用通告: virtual visa card buy with bitcoin

  70. Pingback引用通告: virtual visa and MasterCard buy

  71. Pingback引用通告: Buy THC Vape Juice online Ireland

  72. Pingback引用通告: Mario kart Arcade Gp Dx

  73. Pingback引用通告: shipping container shop

  74. Pingback引用通告: Homes For Sale Belpre Ohio

  75. Pingback引用通告: Copper energy rings

  76. Pingback引用通告: buy cbd oils online usa

  77. Pingback引用通告: buy telegram bot script

  78. Pingback引用通告: buy delta 8

  79. Pingback引用通告: canadian pharmacies

  80. Pingback引用通告: delta 8 near me

  81. Pingback引用通告: BEST RACE HORSE SUPPLIMENTS

  82. Pingback引用通告: tele consultancy

  83. Pingback引用通告: guns for sale

  84. Pingback引用通告: buy heroin online UK

评论功能已关闭。