[GH-ISSUE #11567] Why is Ollama generating ssh key-pairs? #7635

Closed
opened 2026-04-12 19:43:39 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @j05hau on GitHub (Jul 29, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11567

Couldn't find '/Users/username/.ollama/id_ed25519'. Generating new private key.
Your new public key is: 

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICj9R7byYUqmKmh422PwlTNwFs7nEAeJxzVP/643wekt

time=2025-07-28T18:14:05.836+10:00 level=INFO source=routes.go:1235 msg="server config" env="map[HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:4096 OLLAMA_DEBUG:INFO OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/Users/josh/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_SCHED_SPREAD:false http_proxy: https_proxy: no_proxy:]"
time=2025-07-28T18:14:05.837+10:00 level=INFO source=images.go:476 msg="total blobs: 0"
time=2025-07-28T18:14:05.837+10:00 level=INFO source=images.go:483 msg="total unused blobs removed: 0"
time=2025-07-28T18:14:05.839+10:00 level=INFO source=routes.go:1288 msg="Listening on 127.0.0.1:11434 (version 0.9.6)"
time=2025-07-28T18:14:05.863+10:00 level=INFO source=types.go:130 msg="inference compute" id=0 library=metal variant="" compute="" driver=0.0 name="" total="10.7 GiB" available="10.7 GiB"

This is very weird behaviour.

Originally created by @j05hau on GitHub (Jul 29, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11567 ``` Couldn't find '/Users/username/.ollama/id_ed25519'. Generating new private key. Your new public key is: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICj9R7byYUqmKmh422PwlTNwFs7nEAeJxzVP/643wekt time=2025-07-28T18:14:05.836+10:00 level=INFO source=routes.go:1235 msg="server config" env="map[HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:4096 OLLAMA_DEBUG:INFO OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/Users/josh/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_SCHED_SPREAD:false http_proxy: https_proxy: no_proxy:]" time=2025-07-28T18:14:05.837+10:00 level=INFO source=images.go:476 msg="total blobs: 0" time=2025-07-28T18:14:05.837+10:00 level=INFO source=images.go:483 msg="total unused blobs removed: 0" time=2025-07-28T18:14:05.839+10:00 level=INFO source=routes.go:1288 msg="Listening on 127.0.0.1:11434 (version 0.9.6)" time=2025-07-28T18:14:05.863+10:00 level=INFO source=types.go:130 msg="inference compute" id=0 library=metal variant="" compute="" driver=0.0 name="" total="10.7 GiB" available="10.7 GiB" ``` This is **very** weird behaviour.
Author
Owner

@j05hau commented on GitHub (Jul 29, 2025):

Context: this is from one of 3 server logs in the ~/.ollama folder, I didn't activate ssh and have blocked incoming connections, only one of the logs contains the keygen, presumably because the other logs found the generated keys.

<!-- gh-comment-id:3131618054 --> @j05hau commented on GitHub (Jul 29, 2025): Context: this is from one of 3 server logs in the `~/.ollama` folder, I didn't activate ssh and have blocked incoming connections, only one of the logs contains the keygen, presumably because the other logs found the generated keys.
Author
Owner

@rick-github commented on GitHub (Jul 29, 2025):

#10548

<!-- gh-comment-id:3131804463 --> @rick-github commented on GitHub (Jul 29, 2025): #10548
Author
Owner

@j05hau commented on GitHub (Jul 29, 2025):

#10548

Okay, thanks. I guess that makes sense.

<!-- gh-comment-id:3132426890 --> @j05hau commented on GitHub (Jul 29, 2025): > [#10548](https://github.com/ollama/ollama/issues/10548) Okay, thanks. I guess that makes sense.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#7635