Skip to content

Instantly share code, notes, and snippets.

@qknight
Created January 12, 2025 22:17
Show Gist options
  • Save qknight/53da44799935790d706a46d92916e72d to your computer and use it in GitHub Desktop.
Save qknight/53da44799935790d706a46d92916e72d to your computer and use it in GitHub Desktop.
Using replit.com with ssh from the shell using access token jan-2025
[remote "origin"]
url = https://qknight:[email protected]/nixcloud/pankat-replit
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
remote = origin
merge = refs/heads/main
afterwards do:
~/workspace$ ssh
ssh: command not installed. Multiple versions of this command were found in Nix.
Select one to run (or press Ctrl-C to cancel):
openssh 9.7p1 An implementation of the SSH protocol
/nix/store/0g1s8yd0biawp32fl3i7kdbi219jx6aq-openssh-9.7p1
Adding openssh to replit.nix
success
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address]
[-c cipher_spec] [-D [bind_address:]port] [-E log_file]
[-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file]
[-J destination] [-L address] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-P tag] [-p port] [-R address]
[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
destination [command [argument ...]]
ssh [-Q query_option]
 Environment rebuilding in the background...
~/workspace$ git push --set-upstream origin main
Enumerating objects: 42, done.
Counting objects: 100% (42/42), done.
Delta compression using up to 8 threads
Compressing objects: 100% (39/39), done.
Writing objects: 100% (42/42), 658.82 KiB | 28.64 MiB/s, done.
Total 42 (delta 9), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (9/9), done.
To https://github.com/nixcloud/pankat-replit
* [new branch] main -> main
branch 'main' set up to track 'origin/main'.
~/workspace$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment