# Can't generate token for quick reconnect

**URL:** https://kopia.discourse.group/t/cant-generate-token-for-quick-reconnect/2799
**Category:** General Topics
**Created:** [April 14, 2024, 1:27pm UTC](https://kopia.discourse.group/t/cant-generate-token-for-quick-reconnect/2799 "2024-04-14T13:27:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![maxsoch](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@maxsoch](https://kopia.discourse.group/u/maxsoch)
#### Post date: [April 14, 2024, 1:27pm UTC](https://kopia.discourse.group/t/cant-generate-token-for-quick-reconnect/2799/1 "2024-04-14T13:27:59Z")

</div>

Hi all,

I’m trying to generate a token to quickly reconnect on another machine with the commands:  
`kopia repository status -t -s`

However, no token is generated and i just obtain the following:  
Config file: /Users/XXXX/Library/Application Support/kopia/repository.config

Description: API Server: [https://XXXXXX:51515](https://XXXXXX:51515)  
Hostname: XXXXXX  
Username: XXXXXX  
Read-only: false  
Format blob cache: 15m0s

I tried on both MacOS and Debian - no success

Any ideas?

Thanks

---

<div class="post-metadata">

### Author: ![ZebCorp](https://avatars.discourse-cdn.com/v4/letter/z/5fc32e/32.png) [@ZebCorp](https://kopia.discourse.group/u/ZebCorp)
#### Post date: [April 15, 2024, 1:13pm UTC](https://kopia.discourse.group/t/cant-generate-token-for-quick-reconnect/2799/2 "2024-04-15T13:13:03Z")

</div>

Consider consult Kopia manual - [Command Line | Kopia](https://kopia.io/docs/reference/command-line)

But in short, command “kopia repository status -t -s” should generate a token (a long string of text). To use that token, simply copy it from cli console window and  
use it in command “kopia repository connect from-config --token xxx”.

---

<div class="post-metadata">

### Author: ![maxsoch](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@maxsoch](https://kopia.discourse.group/u/maxsoch)
#### Post date: [April 15, 2024, 4:21pm UTC](https://kopia.discourse.group/t/cant-generate-token-for-quick-reconnect/2799/3 "2024-04-15T16:21:50Z")

</div>

That’s the point, no token is generated, the only thing i get is the message i wrote above

---

<div class="post-metadata">

### Author: ![ZebCorp](https://avatars.discourse-cdn.com/v4/letter/z/5fc32e/32.png) [@ZebCorp](https://kopia.discourse.group/u/ZebCorp)
#### Post date: [April 15, 2024, 4:54pm UTC](https://kopia.discourse.group/t/cant-generate-token-for-quick-reconnect/2799/4 "2024-04-15T16:54:44Z")

</div>

It looks like only “kopia repository status” part of command is proceed without “-t -s” part. Dunno what may causes this (too many spaces in command prompt?). Also repository must be connected to get token.
