Skip to content

How to affix the port in SSH command #810

Answered by AkihiroSuda
Svoch asked this question in Q&A
Discussion options

You must be logged in to vote

The port number can be affixed in the .ssh.localPort property of the YAML

ssh:
# A localhost port of the host. Forwarded to port 22 of the guest.
# 🟢 Builtin default: 0 (automatically assigned to a free port)
# NOTE: when the instance name is "default", the builtin default value is set to
# 60022 for backward compatibility.
localPort: 0

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AkihiroSuda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants