# SSH trên Windows PowerShell

**URL:** https://daynhauhoc.com/t/ssh-tren-windows-powershell/119897
**Category:** programming
**Tags:** ssh
**Created:** [October 1, 2021, 7:40am UTC](https://daynhauhoc.com/t/ssh-tren-windows-powershell/119897 "2021-10-01T07:40:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![\_abcxyz](https://daynhauhoc.com/user_avatar/daynhauhoc.com/_abcxyz/32/53468_2.png) [@\_abcxyz](https://daynhauhoc.com/u/_abcxyz)
#### Post date: [October 1, 2021, 7:40am UTC](https://daynhauhoc.com/t/ssh-tren-windows-powershell/119897/1 "2021-10-01T07:40:24Z")

</div>

Mình đang gặp lỗi này với ssh:  
`ssh: connect to host localhost port 2201: Connection refused` khi mình chạy `ssh -p 2201 trafodion@localhost`.  
Nhưng khi mình thử `ssh trafodion@localhost` thì nó lại hiển thị yêu cầu nhập mật khẩu.  
Vậy có phải do lỗi port sai. Nếu port sai làm sao để biết các port nào đang chạy trong `trafodion@localhost`???

---

<div class="post-metadata">

### Author: ![kisuluoibieng](https://daynhauhoc.com/letter_avatar_proxy/v4/letter/k/a9adbd/32.png) [@kisuluoibieng](https://daynhauhoc.com/u/kisuluoibieng)
#### Post date: [October 1, 2021, 11:26am UTC](https://daynhauhoc.com/t/ssh-tren-windows-powershell/119897/2 "2021-10-01T11:26:09Z")

</div>

`ssh -p 2201 trafodion@localhost`  
lý do gì mà bạn lại chạy lệnh này?

`ssh trafodion@localhost`  
theo bạn lệnh này chạy thì kết quả phải như thế nào mới là đúng

vì sao bạn nghĩ là port bị sai?

---

<div class="post-metadata">

### Author: ![\_abcxyz](https://daynhauhoc.com/user_avatar/daynhauhoc.com/_abcxyz/32/53468_2.png) [@\_abcxyz](https://daynhauhoc.com/u/_abcxyz)
#### Post date: [October 1, 2021, 2:58pm UTC](https://daynhauhoc.com/t/ssh-tren-windows-powershell/119897/3 "2021-10-01T14:58:04Z")

</div>

mình có pull trafodion từ docker về và theo như hướng dẫn của cái image này trên hub.docker thì sau khi chạy container xong thì thực thi lệnh này để sử dụng.  
Mình cũng không rõ lắm nên mới hỏi.
