Groups
Groups
Sign in
Groups
Groups
NYCU NASA 課程討論區
Conversations
About
Send feedback
Help
[SA HW2] 助教我第一個測資[Error]: sysadm should be login via SSH, adjust your the setting!
160 views
Skip to first unread message
張鈞博
unread,
Oct 27, 2025, 4:11:05 AM
Oct 27
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
助教我想問我已經把ssh key複製到sysadm目錄下也調整好權限了,sshd_config也有新增這行"AllowUsers judge sysadm",還有甚麼原因導致錯誤呢?(wireguard也有開)
這是在sysadm底下.ssh的權限:
也可以自己輸入sysadm密碼登入ssh 查看 authorized_keys長怎樣
許仲宇
unread,
Oct 27, 2025, 8:21:19 AM
Oct 27
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
同學您好:
authorized_keys 可以放多個 public keys,建議您先嘗試:
自己在 local 生成一組 public/private SSH key pair
將該 public key append 到 authorized_keys
以該 private SSH key 嘗試登入(不應需要輸入密碼)
Hint:
ssh -i <private key file>
若測試後發現一切正常,但 judge 仍顯示 cannot login via SSH,可以再提供 sshd_config 以協助排查問題
TA hsuchy
albert...@gmail.com
在 2025年10月27日 星期一下午4:11:05 [UTC+8] 的信中寫道:
張鈞博
unread,
Nov 2, 2025, 8:57:59 AM (8 days ago)
Nov 2
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
助教我目前已成功解決ssh sysadm @ localhost了,但是現在變成sftp-u1沒有辦法使用ssh key登入sftp,我也已經自己生成key pair測試過了,詳見底下:
權限應該是正確的:
我自己生成的key pair(第一行是原本的judge的ssh key第二行是我自己測試的pubkey)
也確定test_key對應的pubkey是正確的:
但就是無法sftp進去:
我的sshd_config (以上都是確定restart sshd後執行的):
再麻煩助教了~我鬼打牆好久,謝謝你們
twofour...@nycu.edu.tw
在 2025年10月27日 星期一晚上8:21:19 [UTC+8] 的信中寫道:
許仲宇
unread,
Nov 2, 2025, 10:52:14 AM (8 days ago)
Nov 2
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
同學您好:
從您提供的截圖,我們難以確定問題的根本原因,但可以建議您先著手將 AllowUsers 加上 sftp-u1
謝謝
TA hsuchy
poposolo...@nycu.edu.tw
在 2025年11月2日 星期日晚上9:57:59 [UTC+8] 的信中寫道:
陳炤宇
unread,
1:53 AM (8 hours ago)
1:53 AM
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NYCU NASA 課程討論區
助教好,我想詢問相似的問題。我在VM裡面可以透過ssh登入sysadm了,但在OJ中第一個測資還是[Error]: sysadm should be login via SSH, adjust your the setting!
下面附上登入的畫面以及/etc/ssh/sshd_config
twofour...@nycu.edu.tw
在 2025年11月2日 星期日晚上11:52:14 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages