1. Cant Access ‘classifier’ node in Slice

Cant Access ‘classifier’ node in Slice

Home Forums FABRIC General Questions and Discussion Cant Access ‘classifier’ node in Slice

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #7872
    Sourya Saha
    Participant

      Hi. I cannot access the node named ‘classifier’ at STAR with ip 2001:400:a100:3030:f816:3eff:fe32:1bbd.
      This is what i get:

      jammy@dissect-Precision-3680:~$ ssh -F ~/.ssh/fabric_ssh_config/fabric_config -i ~/.ssh/fabric_ssh_config/slice_key ubuntu@2001:400:a100:3030:f816:3eff:fe32:1bbd
      Warning: Permanently added ‘bastion.fabric-testbed.net’ (ED25519) to the list of known hosts.
      Warning: Permanently added ‘2001:400:a100:3030:f816:3eff:fe32:1bbd’ (ED25519) to the list of known hosts.
      ubuntu@2001:400:a100:3030:f816:3eff:fe32:1bbd: Permission denied (publickey).

      I have logged into the VM using my local machine and one of the terminals are open with that VM. However, I cannot login anymore to that VM from anywhere (local machine/JupyterHub). I tried checking the authorized_keys in the VM and it matches the required private key. But I am unable to login. My Slice_ID is 91d9b871-e169-443c-869b-a9fd1df54a87.

      #7873
      Komal Thareja
      Participant

        Hi Sourya,

        It looks like the authorized_keys file is not correct. I am not even able to login to nova SSH keys.

        Could you please confirm if you see a key which ends with Generated-by-Nova  in /home/ubuntu/.ssh/authorized_keys ?

        Also, please share the output of the command ls -ltr /home/ubuntu/.ssh/ ?

        Thanks,

        Komal

        #7874
        Sourya Saha
        Participant

          Hi Komal, I do see a key ending with ‘Generated-by-Nova’ in the list of authorized keys.
          The output of ls -ltr /home/ubuntu/.ssh/ is:

          ubuntu@00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier:~$ ls -ltr /home/ubuntu/.ssh/
          total 4
          -rw——- 1 ubuntu ubuntu 742 Dec 2 17:41 authorized_keys
          ubuntu@00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier:~$

          #7876
          Hussam Nasir
          Moderator

            One likely cause is if the disk is full. Please check that too.

            #7877
            Sourya Saha
            Participant

              Hi. Just checked the disk. It says it is 88% available.

              #7878
              Hussam Nasir
              Moderator

                Can you please grab the logs using

                sudo journalctl -r -u ssh >/tmp/ssh.log

                 

                and then email help@fabric-testbed.net with the ssh.log file attached .If pullout the file is not possible then just run

                sudo journalctl -r -u ssh

                and copy the few recent lines that will help us debug the issue.

                #7879
                Sourya Saha
                Participant

                  Sent. Please check and confirm.

                  #7880
                  Hussam Nasir
                  Moderator

                    Can you please post the output of
                    ls -lad /home/ubuntu

                    ls -la /home/ubuntu/.ssh

                     

                    The can see from the ssh log that the ownership of home directory is the issue

                    Dec 02 18:07:16 00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier sshd[60744]: Connection closed by authenticating user ubuntu 2001:400:a100:1030::51 port 52118 [preauth]
                    Dec 02 18:07:16 00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier sshd[60744]: Authentication refused: bad ownership or modes for directory /home/ubuntu
                    Dec 02 18:07:09 00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier sshd[60742]: Connection closed by authenticating user ubuntu 2001:400:a100:1030::51 port 52104 [preauth]
                    Dec 02 18:07:09 00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier sshd[60742]: Authentication refused: bad ownership or modes for directory /home/ubuntu
                    Dec 02 18:06:35 00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier sshd[60740]: Connection closed by authenticating user ubuntu 2001:400:a100:1030::51 port 50056 [preauth]
                    Dec 02 18:06:35 00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier sshd[60740]: Authentication refused: bad ownership or modes for directory /home/ubuntu

                    #7881
                    Sourya Saha
                    Participant

                      ubuntu@00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier:~$ ls -lad /home/ubuntu
                      drwxrwx— 12 ubuntu root 4096 Dec 2 18:17 /home/ubuntu
                      ubuntu@00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier:~$ ls -la /home/ubuntu/.ssh
                      total 12
                      drwx—— 2 ubuntu ubuntu 4096 Dec 2 17:58 .
                      drwxrwx— 12 ubuntu root 4096 Dec 2 18:17 ..
                      -rw——- 1 ubuntu ubuntu 742 Dec 2 17:41 authorized_keys
                      ubuntu@00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier:~$

                       

                       

                      • This reply was modified 2 months, 3 weeks ago by Sourya Saha.
                      #7882
                      Hussam Nasir
                      Moderator

                        Thats not the right machine . We want the output from 00954b21-57cf-40e2-86c2-0d7b7269fecb-classifier  node

                        #7884
                        Sourya Saha
                        Participant

                          Sorry, just edited my comment.

                          #7885
                          Hussam Nasir
                          Moderator

                            Aha. The cuplrit is the group ownsership on your home folder. This must have been changed somehow.

                            drwxrwx— 12 ubuntu root 4096 Dec 2 18:17 /home/ubuntu

                             

                            run the command

                            sudo chown -R ubuntu:ubuntu  /home/ubuntu

                             

                            That should fix the issue.

                             

                            #7886
                            Sourya Saha
                            Participant

                              Fixed it like a charm. Thank you so much.

                              #7887
                              Hussam Nasir
                              Moderator

                                glad to be of assistance

                              Viewing 14 posts - 1 through 14 (of 14 total)
                              • You must be logged in to reply to this topic.
                              FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

                              KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)
                              FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

                              KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)