Re: Changing .ssh/authorized_keys script

2021-05-20 Thread Louis Bertrand
Hi Mads,

Thanks for the quick response. Yes, that was exactly what was needed. And yes, 
I wanted to steer clear of the warning about manually editing the file.

All the best

 --Louis



From: Mads Kiilerich 
Sent: Thursday, May 20, 2021 5:01 PM
To: Louis Bertrand; kallithea-general@sfconservancy.org
Subject: Re: Changing .ssh/authorized_keys script

[EXTERNAL EMAIL]

On 5/19/21 4:21 PM, Louis Bertrand wrote:
> Hello,
>
> When I upgraded Kallithea, I somehow changed the venv directory from 
> ~/kallithea-venv to kallithea/venv. In other words, instead of a venv 
> directory beside the kallithea directory, it's now under the directory.
>
> Everything is fine except for ssh access because the cli script has moved. I 
> updated the path
>
> kallithea_cli_path = 
> /srv/web/sites/hg.set.durhamcollege.org/kallithea/venv/bin/kallithea-cli
> However the .ssh/authorized_keys file needs to be updated.

There is a way to update authorized_keys. See the last section in
https://kallithea.readthedocs.io/en/default/setup.html#using-kallithea-with-ssh
: The ``authorized_keys`` file can be updated manually with
``kallithea-cli ssh-update-authorized-keys -c my.ini``.



> Is there a way to edit the file without invalidating it?


(I'm not sure what is meant with "edit without invalidating" - is it
"make it rewrite the file even though nothing changed that could trigger
it"?)

/Mads


This message is intended only for the named recipients. This message may 
contain information that is confidential or exempt from disclosure under 
applicable law. Any dissemination or copying of this message by anyone other 
than a named recipient is strictly prohibited. If you are not a named recipient 
or an employee or agent responsible for delivering this message to a named 
recipient, please notify us immediately, and permanently destroy this message 
and any copies you may have. Warning: Email may not be secure unless properly 
encrypted.
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: Changing .ssh/authorized_keys script

2021-05-20 Thread Mads Kiilerich

On 5/19/21 4:21 PM, Louis Bertrand wrote:

Hello,

When I upgraded Kallithea, I somehow changed the venv directory from 
~/kallithea-venv to kallithea/venv. In other words, instead of a venv directory 
beside the kallithea directory, it's now under the directory.

Everything is fine except for ssh access because the cli script has moved. I 
updated the path

kallithea_cli_path = 
/srv/web/sites/hg.set.durhamcollege.org/kallithea/venv/bin/kallithea-cli
However the .ssh/authorized_keys file needs to be updated.


There is a way to update authorized_keys. See the last section in 
https://kallithea.readthedocs.io/en/default/setup.html#using-kallithea-with-ssh 
: The ``authorized_keys`` file can be updated manually with 
``kallithea-cli ssh-update-authorized-keys -c my.ini``.





Is there a way to edit the file without invalidating it?



(I'm not sure what is meant with "edit without invalidating" - is it 
"make it rewrite the file even though nothing changed that could trigger 
it"?)


/Mads

___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Changing .ssh/authorized_keys script

2021-05-19 Thread Louis Bertrand
Hello,

When I upgraded Kallithea, I somehow changed the venv directory from 
~/kallithea-venv to kallithea/venv. In other words, instead of a venv directory 
beside the kallithea directory, it's now under the directory.

Everything is fine except for ssh access because the cli script has moved. I 
updated the path

kallithea_cli_path = 
/srv/web/sites/hg.set.durhamcollege.org/kallithea/venv/bin/kallithea-cli
However the .ssh/authorized_keys file needs to be updated. Is there a way to 
edit the file without invalidating it?
Thanks in advance
 --Louis

Louis Bertrand
Professor, School of Science and Engineering Technology
Durham College, Oshawa ON Canada



This message is intended only for the named recipients. This message may 
contain information that is confidential or exempt from disclosure under 
applicable law. Any dissemination or copying of this message by anyone other 
than a named recipient is strictly prohibited. If you are not a named recipient 
or an employee or agent responsible for delivering this message to a named 
recipient, please notify us immediately, and permanently destroy this message 
and any copies you may have. Warning: Email may not be secure unless properly 
encrypted.
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general