-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HELP] A few queries! Please help. #296
Comments
Hi,
with the warning that you are storing your password unencrypted on your phone. For more security, you can use a SSH key file, with
|
Shortcuts > Automation > Personal > Time of Day Of course, if you want the shortcut to run without prompting the user,
Adding on to @ holzschu's explanation,
|
@holzschu @personalizedrefrigerator I use a note-taking software Obsidian, which involves a folder of files. I am syncing this folder using git. Most of my operations is completed via WorkingCopy (free version doesn’t allow push), and for pushing files I use a-shell by Thanks for the ssh for git :) |
If you've used pickFolder once, the folder is stored as a bookmark (use A shortcut running "in Extension" has a different set of bookmarks than a shortcut running "in App", so you probably want to run this "in App". If you need to go back to the Shortcuts app after that, you can use "open shortcuts://" |
Thanks! Curious to know: how to assign bookmarks in extension mode? Can we do that? That way the a-shell wont have to be opened. NEAT. 😅 |
@personalizedrefrigerator I tried creating a SSH, but couldn’t understand. I read through the manual, and generated the SSH Key for myself in a-shell. and it is suggested that I take a ‘Public’ key and link it to GitHub (or GitLab in my case). I don’t think I can find public key anywhere. A-shell in output gave me a key and a pix-art :D Can you help me set it up on iPad? Most of the manual talks about windows specific commands (file handling seems different in iOS) |
Running |
There was no option of uploading the .pub file. So I copied the SSH keys in
GitLab.
Then when I ran the ‘test’ as suggested on GitLab manual: `ssh -T <email>`
it took the permission then failed to connect stating `Permission Denied
(public key, keyboard-interactive)`
I tried to change again, but now it is kind of stuck. I dont know how to
come out of this error :D
…On Tue, 17 Aug 2021 at 6:19 PM, Nicolas Holzschuch ***@***.***> wrote:
Running ssh-keygen creates your public and private keys in
~/Documents/.ssh. By default, the private key is called id_rsa and the
public key is id_rsa.pub. It is the latter than you need to upload to
gitlab and authorize.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#296 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQMZMQNRSLGNDYIGZWUAFB3T5JLEPANCNFSM5CH4GZ2Q>
.
|
|
I did it right here. But to upload? I need to copy and paste right? It’s
written right there. So I opened the .pub file in vim, copied and pasted
here.
…On Tue, 17 Aug 2021 at 6:45 PM, Nicolas Holzschuch ***@***.***> wrote:
-
for security reasons, you should never copy the private key anywhere.
-
on gitlab, if you click on "Edit profile" (top right corner), you
should see a menu with "Profile/Account/Billing...". Near the bottom, there
is "SSH keys". Clicking on it gives you the following interface, with the
opportunity to upload your public key.
[image: image]
<https://user-images.githubusercontent.com/8070736/129731957-caea16ed-8a46-4a30-8c5c-d2cb27c7d304.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#296 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQMZMQL2GVB7LM52X3DLLALT5JOHNANCNFSM5CH4GZ2Q>
.
|
I should probably drop it. Considering I am newbie here. I should maybe
stick to some manual work :D
…On Tue, 17 Aug 2021 at 6:46 PM, Dummy ME ***@***.***> wrote:
I did it right here. But to upload? I need to copy and paste right? It’s
written right there. So I opened the .pub file in vim, copied and pasted
here.
On Tue, 17 Aug 2021 at 6:45 PM, Nicolas Holzschuch <
***@***.***> wrote:
>
> -
>
> for security reasons, you should never copy the private key anywhere.
> -
>
> on gitlab, if you click on "Edit profile" (top right corner), you
> should see a menu with "Profile/Account/Billing...". Near the bottom, there
> is "SSH keys". Clicking on it gives you the following interface, with the
> opportunity to upload your public key.
>
> [image: image]
> <https://user-images.githubusercontent.com/8070736/129731957-caea16ed-8a46-4a30-8c5c-d2cb27c7d304.png>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#296 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AQMZMQL2GVB7LM52X3DLLALT5JOHNANCNFSM5CH4GZ2Q>
> .
>
|
Here's how I would set up authentication via SSH: Steps for generating a new keypair
For example...$ ssh-keygen -t ed25519 Generating public/private ed25519 key pair. Enter file in which to save the key (/private/.../Documents/.ssh/id_ed25519): <Enter> Reply is: . Created directory '/private/var/mobile/.../Documents/.ssh'. Enter passphrase (empty for no passphrase): pass.wd<Enter> Enter same passphrase again: pass.wd<Enter> Your identification has been saved in /private/var/.../Documents/.ssh/id_ed25519 Your public key has been saved in /private/var/.../Documents/.ssh/id_ed25519.pub The key fingerprint is: SHA256:UUbfBoMEyhCwxu14Riwa5LViIM7QKCVGiik4r/Y9c/o mobile@myPhoneName The key's randomart image is: +--[ED25519 256]--+ |*Booo. .+=.o | |/+o+.o . o.. + | |X*=.+ o . . o | |o*.= . . | |. o + S | | . o | |.. | |. . .o . | | . o*E | +----[SHA256]-----+ $ Here, I used `pass.wd` for the password
In summary, my thinking is this: Having a password at all makes it more difficult for someone to steal With a password, a script that steals
Adding the key to GitHubI'm using GitHub as an example here because it's what I'm most familiar with. The steps for configuring
Testing it out
We now have a temporary directory in which we can try things out! (Temporary files are only cleared when your phone/iPad is running out of memory).
Note that I selected our Above, we had to enter the password for our key. Let's make it so we don't have to do that:
(only create the Finally, to test it, run:
If If you have additional questions, please ask! I'm sure this discussion can help others with |
@personalizedrefrigerator thanks for the efforts! I really appreciate it. I managed to get it running up till your walkthrough. And it worked file for the last step too. BUt as soon as I tried it on my repo, it gives an error Edit: Edit-2: Only thing now remains is
If the a-shell can run without opening, then its like really smooth. :D |
I would also like to know how to do this! |
I don't think the extension can assign bookmarks. Apple's key principle behind files and folders authorization is that they must be assigned through explicit user interaction (there must be a window showing the file, and the user must click to open). I don't see a way to do this in extension. And since the app and the extension are two different apps, they do not share their stored bookmarks either. |
If we have a bash file with commands, can’t we run it from shortcuts in extension mode? Will it work without opening the app? |
That entirely depends on the nature of the commands. If none of the commands require access to configuration files that are stored at the App level or in $HOME, if none of the commands require access to the GUI, if the bash file does not use some bash syntax that is not coded in a-Shell (that happens often), and if the entire set of command can be executed in less than 5 seconds, then it will work. You can always try: the Shortcuts have an option to force running In Extension. If it works, it works. |
I see. I was basically thinking of using the pickFolder option somehow. The
bookmarks aren’t accessible in extension, so it won’t be via bash either I
guess. And pushing anyway takes more then 5 sec sometimes.
*idea dumped*.
…On Tue, 24 Aug 2021 at 3:06 PM, Nicolas Holzschuch ***@***.***> wrote:
That entirely depends on the nature of the commands. If none of the
commands require access to configuration files that are stored at the App
level or in $HOME, if none of the commands require access to the GUI, if
the bash file does not use some bash syntax that is not coded in a-Shell
(that happens often), and if the entire set of command can be executed in
less than 5 seconds, then it will work.
You can always try: the Shortcuts have an option to force running In
Extension. If it works, it works.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#296 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQMZMQOTG6BHISNAC2K73BTT6NR25ANCNFSM5CH4GZ2Q>
.
|
The text was updated successfully, but these errors were encountered: