Hi Andrey, 

Update: After some research I was able to found the source of the problem!
It looks like my server was configured for a public key authentication as a 
*server*, but not as a *client *(i.e., when connecting in the role of a 
client to itself on localhost). So I changed this setting in 
*/etc/ssh/config* and afterwards was able to successfully set up a pair of 
ssh keys for configuration of *sagecell *as required in Step 3 and launch 
sagecell from terminal. 

Best wishes!
Varvara



On Thursday, 22 September 2022 at 13:25:59 UTC+2 Varvara Karpova wrote:

> Hi Andrey! 
>
> No, you are right, when I type "ssh localhost" on the command line (while 
> being in the *sagecell* directory) I get the message* Permission denied 
> (publickey).*
>
> Let me explain my setup a bit better: 
>
>    - I am remotely connected to a Debian secured server (to connect to my 
>    server I use a pair of ssh keys, no password). 
>    - I installed both *sage *and *sagecell *on my secured server and I am 
>    for the moment trying to lauch the sagecell server from the command line 
> on 
>    my secured server. 
>    - (Later on, the idea will be obviously to set everything up, so that 
>    I can connect to *sagecell *running on my server from an external 
>    laptop. But for now I wanted to test how things work while working the 
>    whole time wihtin my server.)
>    - So technically, I thought I wouldn't need a second layer of ssh 
>    security to connect to *sagecell *for the moment, since I am launching 
>    it within my server. 
>
>
> But did I understand your previous answer correctly, that this type of 
> connection to *sagecell  *without ssh is not possible, and that I need to 
> configure another ssh connection via a pair of keys according to the step 3 
> from Installtion Guide (below)? 
> I am not sure which identifiers for *username *and *host *should I then 
> use? Still my username and my server name, just generating a second rsa key 
> pair for the connection my server <> sagecell ? 
> Sorry, I am a bit lost for the moment... :)
>
> Thank you very much for your advice!
>
> Varvara
>
>
> *--*
> *Edit config.py according to your needs. Of particular interest 
> are host and username entries of the provider_info dictionary: you should 
> be able to SSH to username@host without typing in a password. For example, 
> by default, it assumes you can do ssh localhost without typing in a 
> password. Unless you are running a private and firewalled server for 
> youself, you’ll want to change this to a more restrictive account; 
> otherwise anyone will be able to execute any code under your username. *
> *--*
>
>
>  
>
> On Friday, 16 September 2022 at 21:48:30 UTC+2 [email protected] wrote:
>
>> Hi Varvara!
>>
>> Does "ssh localhost" work for you on the command line where you are 
>> trying to start SageMathCell without entering anything (i.e. your 
>> password)? This is NOT the case by default! While nothing is achieved by 
>> running workers as the same user as the server in terms of security, it is 
>> still useful for development to see that the code for launching workers as 
>> separate users works. The output you get suggests that this is the issue - 
>> public key authorization is not configured.
>>
>> Thank you!
>> Andrey
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/bf28d353-e656-4bf3-bca4-734e87b269e8n%40googlegroups.com.

Reply via email to