Skip to content

PlusMagi's Blog By Pitt Phunsanit

Plus emotional magic to the knowledge of logic.

  • About’s Pitt
Close Button
PlusMagi's Blog By Pitt Phunsanit Linux,Network Linux: GitHub

Linux: GitHub

2003-08-052003-08-05| phunsanitphunsanit| 0 Comment | 07:00
Categories:
  • Linux
  • Network

วิธี login github ใน linux ที่ตอนหลังไม่สามารถล๊อกอินโดยใช้ยูสเซอร์เนมและพาสเวิร์ดได้แล้ว

  1. ดูว่ามี key pair รียัง
    cd ~/.ssh
    ls
    1. ถ้ายังไม่มีไฟล์ id_rsa.pub ให้สร้างใหม่โดยคำสั่ง
      ssh-keygen -o -t rsa -C "[email protected] หรือ commant"
    2. Generating public/private ed25519 key pair.
      Enter file in which to save the key (/Users/phunsanit/.ssh/id_ed25519) :
      ถ้าตอบจะเป็นการใส่ชื่อไฟล์ ใน ~/.ssh เช่น phunsanit@GitHub ถ้า enter เฉย ๆ จะใช้ชื่อที่สุ่มมา
    3. ใส่รหัสผ่านใหม่ให้กับคำถาม
      Enter passphrase (empty for no passphrase) :
      Enter same passphrase again:
      อย่าลืมเก็บ password นี้ไว้ดี ๆ
    4. จะเห็นข้อความประมาณ
      Your identification has been saved in /Users/username/.ssh/id_rsa.
      Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
      The key fingerprint is:
      01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db [email protected]
      The key's randomart image is:
      +--[ RSA 2048]----+
      | |
      | |
      | . E + |
      | . o = . |
      | . S = o |
      | o.O . o |
      | o .+ . |
      | . o+.. |
      | .+=o |
      +-----------------+
      
  2. ดู public key ในไฟล์ .pub
    cat ~/.ssh/[email protected]
    จะเห็นข้อความประมาณ
    ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA879BJGYlPTLIuc9/R5MYiN4yc/YiCLcdBpSdzgK9Dt0Bkfe3rSz5cPm4wmehdE7GkVFXrBJ2YHqPLuM1yx1AUxIebpwlIl9f/aUHOts9eVnVh4NztPy0iSU/Sv0b2ODQQvcy2vYcujlorscl8JjAgfWsO3W4iGEe6QwBpVomcME8IU35v5VbylM9ORQa6wvZMVrPECBvwItTY8cPWH3MGZiK/74eHbSLKA4PY3gM4GHI450Nie16yggEg2aTQfWA1rry9JYWEoHS9pJ1dnLqZU3k/8OWgqJrilwSoC5rGjgp93iu0H8T6+mEHGRQe84Nk1y5lESSWIbn6P636Bl3uQ== [email protected]
    
  3. ใส่ public key ใน GitHub ไปที่ https://github.com/settings/ssh/new ใส่ Title ที่ต้องการเช่น home notebook และวางเนื้อหาใน clipboard ไปที่ช่อง Key คลิก Add SSH key

  4. ทดสอบโดยคำสั่ง
    ssh -T [email protected]
    จะตอบมาประมาณ
    Hi phunsanit! You’ve successfully authenticated, but GitHub does not provide shell access.
  5. ทดสอบโดยพิมพ์ clone ใน terminal แล้วไปที่ github repository ของเราคลิก clone คลิก SSH คลิกปุ่ม copy วางข้อความประมาณ [email protected]:phunsanit/xxx.git เช่น clone [email protected]:phunsanit/xxx.git
    ทำตามขั้นตอนไปการ clone ไปเรื่อย ๆ เมื่อมีคำถามเกี่ยวกับรหัสผ่านก็ใส่รหัสผ่านที่ได้ตั้งไว้

อ่านเพิ่มเติม

  • Generating a new SSH key and adding it to the ssh-agent
  • SSH Keys for GitHub
Tags: Login, machine-learning, SSH, Terminal, ปัญญาประดิษฐ์

แนะแนวเรื่อง

PREVIOUS Previous post: Divergent vs Convergent Thinking (การคิดแบบแตกแขนงและการคิดเชิงรวบยอด)
NEXT Next post: Connecting Unrelated Ideas (การเชื่อมโยงแนวคิดหรือข้อมูลที่ไม่เกี่ยวข้องกัน)

Projects

  • Statement Columns Mapping Helper
  • PlusMagi Blocks
  • PlusMagi Site Search
  • PlusMagi Tags Reindex
  • jQuery Plus Repeater

Recent Posts

  • Apple แต่งตั้ง จอห์น เทอร์นัส (John Ternus) ขึ้นเป็น CEO โดยไม่ใช่ โจนี ไอฟ์ (Jony Ive)
  • Microsoft Coreutils for Windows: เมื่อคำสั่ง Linux ยอดฮิตพร้อมใช้งานแบบ Native บน Windows
  • Tabulator 101: สร้าง Data Grid ประสิทธิภาพสูงจากข้อมูล JSON แบบง่ายด้วย JavaScript
  • Information Security (InfoSec) Manager
  • Security Operations Center (SOC) Analyst

Archives

Categories

  • .net core (33)
  • Action Genre (1)
  • Archaeology (1)
  • art (81)
  • Artificial Intelligence (1)
  • Astronomy (2)
  • Automotive History (1)
  • Bioengineering (1)
  • business (897)
    • Business Analysis (330)
    • Finance (32)
    • Real Estate (24)
  • cd (108)
  • chemistry (1)
  • ci (108)
  • CMS (29)
  • collaboration (1)
  • Comics (1)
  • Command Line Interface (1)
  • Communication (136)
  • Computer Hardware (54)
  • computer science (1,901)
    • AI (390)
    • Biology (60)
      • Environment (34)
    • Cloud Computing (342)
    • Data Visualization (58)
    • Mathematics (44)
  • container (60)
  • Cosmology (2)
  • Culture (148)
  • data engineering (1)
  • data management (1)
  • Data Modeling (1)
  • Data Privacy (52)
  • Data Transformation (130)
  • Database Management (1)
  • Defense Technology (1)
  • Design (333)
    • UX/UI (45)
  • development (1)
  • devops (19)
  • Digital Electronics (1)
  • digital marketing (1)
  • e-learning (1)
  • Earth Science (1)
  • Ecology (1)
  • Education (3)
  • Embedded Systems (1)
  • engineering (1,049)
    • architecture (941)
    • Building Engineering (50)
  • Entertainment (1)
  • Environmental Science (1)
  • Environmentalism (1)
  • Fantasy Literature (1)
  • Film (2)
  • film studies (2)
  • Forensic Science (1)
  • Frontend Development (1)
  • Geology (1)
  • Grammar (1)
  • graph theory (1)
  • Hardware (2)
  • Health (159)
    • Safety (127)
  • Health Science (1)
  • Humanities (397)
    • Academia (162)
    • history (113)
    • Linguistics (16)
    • Literature (98)
  • information retrieval (1)
  • Information Science (3)
  • International Relations (1)
  • Internet of Things (1)
  • IT Operations (1)
  • Language Arts (1)
  • Law (302)
  • library science (1)
  • Life (1,506)
    • Cartoon (41)
    • D.I.Y (61)
    • Mindset (311)
    • Movies (57)
    • Philosophy (229)
    • Psychology (1,076)
      • Behavioral Science (296)
      • Cognitive Science (261)
    • Sci-Fi (66)
    • Tips and Tricks (32)
    • พุทธ (7)
  • logistics (1)
  • management (890)
    • knowledge management (295)
      • Documentation (98)
    • productivity (5)
    • Project Management (13)
    • strategy (3)
  • Marketing (1)
  • Markup Languages (1)
  • Mechanical Engineering (2)
  • Media (1)
  • media studies (3)
  • military history (1)
  • Military Technology (1)
  • Mystery (1)
  • Mythology (1)
  • Network (388)
    • IOT (24)
    • Nginx (26)
  • networking (45)
  • Object-Relational Mapping (1)
  • operating system (15)
  • Operating Systems (574)
    • Linux (207)
    • macOS (141)
      • Homebrew (25)
    • Shell Script (38)
      • Oh My ZSH (5)
    • Windows (99)
      • PowerShell (26)
  • physics (1)
  • Pop Culture (1)
  • popular culture (1)
  • Process Management (1)
  • Process Modeling (1)
  • Programming (2,173)
    • .NET (116)
      • .NET Core EF (9)
      • C# (77)
    • API (468)
      • REST (8)
    • Database (686)
      • MariaDB (38)
      • MySql (69)
      • Oracle Database (24)
      • PostgreSQL (14)
      • RDBMS (55)
      • SQL Server (76)
        • T-SQL (26)
    • Programming Languages (368)
      • Java (95)
      • PHP (216)
      • Python (13)
      • Rust (31)
    • Software Architecture (7)
    • Software Engineering (65)
    • System Analyst (SA) (56)
    • Testing (124)
      • Automated Testing (110)
    • Web (1,434)
      • Apache HTTP Server (34)
      • Backend (1,142)
        • Laravel (54)
        • Spring Boot (15)
      • Frontend (309)
        • Angular (10)
        • CSS (65)
        • JavaScript (188)
        • jQuery (57)
        • Tabulator (24)
        • Tailwind CSS (4)
        • Vue.js (6)
      • WordPress (32)
  • Programming Language (4)
  • Religion (1)
  • Science (1)
  • Science Fiction (9)
  • SecDevOps (788)
    • automation (250)
    • CI/CD (137)
    • Docker (89)
    • GIT (56)
    • SVN (6)
    • system (232)
      • System Administration (22)
  • Security (455)
    • Authentication (89)
    • Cryptography (42)
    • Cybersecurity (266)
  • Sensory Technology (1)
  • Server Infrastructure (1)
  • Sociology (2)
  • Software Design (1)
  • Software Development (6)
  • software development lifecycle (1)
  • Software Development Practices (1)
  • Software Testing (1)
  • Space Exploration (1)
  • Spirituality (1)
  • sports (1)
  • SQL (1)
  • Storage Systems (1)
  • Storytelling (1)
  • Supply Chain Management (1)
  • system architecture (1)
  • system design (4)
  • System Modeling (3)
  • Systems Modeling (1)
  • Systems Programming (2)
  • Technical Support (1)
  • technology (3)
  • Technology History (1)
  • UI (1)
  • Uncategorized (661)
  • user experience (2)
  • User Experience Design (2)
  • User Interface Design (1)
  • UX Design (1)
  • Version Control (3)
  • visualization (1)
  • Web Design (1)
  • web development (44)
  • Web Standards (1)
  • web technology (1)
  • wellness (2)
  • นวนิยายสืบสวน (1)
  • วรรณกรรม (1)
  • เรื่องเล่า (1)

Sirat WordPress Theme By VWThemes

Scroll Up
Go to mobile version