let's get IT with DAVINA ๐ป
Push failed Ssh: connect to host '...' port 22: Connection timed ๋ณธ๋ฌธ
DEV_IN/Git&Github
Push failed Ssh: connect to host '...' port 22: Connection timed
๋ค๋น์น์ฝ๋๐ 2023. 3. 3. 20:42๋น๋'s ์ฝ์ง ์ผ์ง
Local์์ ์์ ํ๋ project๋ฅผ Remote Github์ ์ฐ๊ฒฐํ๊ณ ์ถ์ ๋, ์๋์ ๊ฐ์ด SSH์ฃผ์๋ก ์ฐ๊ฒฐ์ ํ๋๋
git push๊ฐ ๊ณ์ํด์ ์คํจํ๋ค..
git remote add origin git@github.com:davina708/todo-vin.git
git branch -M main
git push -u origin main
โญ๏ธ ํด๊ฒฐ ๋ฐฉ๋ฒ
git remote remove origin git@github.com:davina708/todo-vin.git //์ฐ๊ฒฐ ๋ remote ์ ๊ฑฐ
git remote add origin https://github.com/davina708/todo-vin.git //๊นํ https์ ์ฃผ์ ์
๋ ฅ
git remote -v // remote ์ฐ๊ฒฐ ํ์ธ
โ ์์ธ
๊ตฌ๊ธ๋ง์ ํด๋ณด๋ port 22์ ๋ฌธ์ ๊ฐ ์์๋ค.. ๊นํ์์ ์ฝ๋ฉ์ ํ๊ณ ์์ด์ ๋ด๊ฐ ์ฌ์ฉํ๋ ๋คํธ์ํฌ ๋ง์ด ํด๋น ํฌํธ์ ์ ๊ทผ์ ๋ง์๋ฒ๋ ค์ ์๊ธฐ๋ ์๋ฌ๋ผ๊ณ ํ๋ค.
์ฝ์ง์ ํ ์๊ฐ์ ๋นํด์ https์ฃผ์๋ก๋ง ๊ฐ์ ธ์์ฃผ๋ฉด ๋๋๊ฑฐ์๋๋ฐ..ใ ์๊ฐ์ด ๋๋ฌด๋๋ ์ค๋ ๊ฑธ๋ ธ๋ค.. ํ๋ค๋ค.. ์ง์น๋ค.. ๋ ๊ด์ฐฎ๋ค.. ์์ธ๋ ์๊ณ .. ํด๊ฒฐ๋์ผ๋ฉด ๋์ง..
![](https://t1.daumcdn.net/keditor/emoticon/friends1/large/012.gif)
'DEV_IN > Git&Github' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Git VS Github (0) | 2023.02.08 |
---|---|
Git Flow (4) | 2023.02.08 |
Github (0) | 2023.02.08 |
Git [๋ด ์ค์ ๋ณต๊ตฌํ๊ธฐ] ๊ณผ๊ฑฐ๋ก ์ฉ ๐จ (4) | 2023.02.08 |
Git [merge] (3) | 2023.02.08 |
Comments