Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 326 Bytes

ssh.md

File metadata and controls

28 lines (18 loc) · 326 Bytes

how to change default ssh port for coreos

cat > /etc/systemd/system/sshd.socket <<-EOF
[Unit]
Description=OpenSSH Server Socket
Conflicts=sshd.service

[Socket]
ListenStream=2222
Accept=yes

[Install]
WantedBy=sockets.target
EOF


systemctl restart sshd.socket

sudo vi /etc/ssh/sshd_config

Port 2222