Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb9e0fc9

Browse files
fix: format code to pass CI checks
Remove trailing whitespace from empty lines in agentssh.goto satisfy the formatting requirements.Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parentf9f7f5a commitb9e0fc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎agent/agentssh/agentssh.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ func CoderSigner(seed int64, algorithm string) (gossh.Signer, error) {
13401340
// Clients should ignore the host key when connecting.
13411341
// The agent needs to authenticate with coderd to SSH,
13421342
// so SSH authentication doesn't improve security.
1343-
1343+
13441344
switchalgorithm {
13451345
case"ed25519":
13461346
// Generate deterministic Ed25519 key
@@ -1350,12 +1350,12 @@ func CoderSigner(seed int64, algorithm string) (gossh.Signer, error) {
13501350
returnnil,err
13511351
}
13521352
returngossh.NewSignerFromKey(privateKey)
1353-
1353+
13541354
case"rsa","":
13551355
// Default to RSA for backward compatibility
13561356
coderHostKey:=agentrsa.GenerateDeterministicKey(seed)
13571357
returngossh.NewSignerFromKey(coderHostKey)
1358-
1358+
13591359
default:
13601360
returnnil,fmt.Errorf("unsupported host key algorithm: %s",algorithm)
13611361
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp