Free MetalVPS Intel i9-13900 Traditional Shell Account! Make Your Own VPSes!

191012141533

Comments

  • @NotRealZeyad said:

    currently am trying to login but it gives me an error of permission denied public key even tho I made sure the public key is correct

    Oh yes I forgot put the ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGaBSZZxofHNojkMp09VE+lWpjOUvxpiaZtMM0h6uWfU

    Thanked by (2)Yqua Not_Oles
  • edited April 2023

    @NotRealZeyad said:

    currently am trying to login but it gives me an error of permission denied public key even tho I made sure the public key is correct

    Can you confirm that at least one of the following public keys is correct?
    root@fsn ~ # cat /home/zeyad/.ssh/authorized_keys
    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFQmGObRXJDh4ghN1NlrrxFWHW5PKBg8ByUAJ8WsuCy eddsa-key-20230426
    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFQmGObRXJDh4ghN1NlrrxFWHW5PKBg8ByUAJ8WsuCy
    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGaBSZZxofHNojkMp09VE+lWpjOUvxpiaZtMM0h6uWfu

    If yes, did you set the corresponding private key as key in your SSH client?

    Thanked by (1)Not_Oles
  • @Yqua said:

    Can you confirm that at least one of the following public keys is correct?
    root@fsn ~ # cat /home/zeyad/.ssh/authorized_keys
    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFQmGObRXJDh4ghN1NlrrxFWHW5PKBg8ByUAJ8WsuCy eddsa-key-20230426
    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFQmGObRXJDh4ghN1NlrrxFWHW5PKBg8ByUAJ8WsuCy
    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGaBSZZxofHNojkMp09VE+lWpjOUvxpiaZtMM0h6uWfu

    If yes, did you set the corresponding private key as key in your SSH client?

    Last one is correct and yes I did

    in my Private key it says

    Public Lines 2:
    AAAAC3NzaC1lZDI1NTE5AAAAIGaBSZZxofHNojkMp09VE+lWpjOUvxpiaZtMM0h6
    uWfU

    Thanked by (2)Yqua Not_Oles
  • edited April 2023

    @NotRealZeyad I just re-set the correct permissions for the .ssh/ folder and the .ssh/authorized_keys file. Can you check again if you can connect now?

    If it doesn't work, which SSH client are you using?

    Thanked by (1)Not_Oles
  • @Yqua said:
    @NotRealZeyad I just re-set the correct permissions for the .ssh/ folder and the .ssh/authorized_keys file. Can you check again if you can connect now?

    If it doesn't work, which SSH client are you using?

    Still cant connect am using PuTTY btw

    Thanked by (2)Yqua Not_Oles
  • @NotRealZeyad said:

    Still cant connect am using PuTTY btw

    I am not an expert on Putty, but it looks to me like your private key is not set in Putty's configuration.

    Thanked by (1)Not_Oles
  • edited April 2023
    I just did it

    Windows 10 but apps in OOBE (Out-Of-Box Expirement)
    I want to try something crazylike make servers, or Play games, edit videos
    image

    Thanked by (3)Yqua bruh21 Not_Oles
  • @Yqua Try to make Password Authentication to true cuz I have password on it

    Thanked by (2)Yqua Not_Oles
  • @Not_Oles said:

    Hi @NgocNguyen8372!

    Welcome to LES! Welcome to MetalVPS!

    Maybe you could work on your ssh key some more? I think the format might need adjustment.

    Hopefully we can talk more soon. It will be good to have you on the server!

    Best!

    Tom

    @Not_Oles said:

    Hi sorry for putting the wrong format
    Here the right one

    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINJuWhz2Bdz1oMXWkhqOgdRQQL4/ntWtNyfUt9NqhrkF eddsa-key-20230429

    Also sorry for long wait

    Thanked by (1)Not_Oles
  • edited April 2023

    @NotRealZeyad said:
    @Yqua Try to make Password Authentication to true cuz I have password on it

    nah bro people always use sshkeys also its more better than password
    also did u try lower case if you use Uppercase

    Thanked by (2)Yqua Not_Oles
  • @dinopotato said:

    nah bro people always use sshkeys also its more better than password
    also did u try lower case if you use Uppercase

    ssh keys can have passwords on it

    Thanked by (1)Not_Oles
  • @NotRealZeyad said:
    @Yqua Try to make Password Authentication to true cuz I have password on it

    I won't do that (Maybe @Not_Oles would do it, but I don't think so.) Password Authentication is, at least in my eyes, not secure enough. Please try it again with another SSH Client.

    Thanked by (1)Not_Oles
  • @NotRealZeyad said:

    ssh keys can have passwords on it

    Wait, you set an password on your ssh key? Then you need to use a software like Pageant (which is included with Putty) to use the ssh key.

    Thanked by (1)Not_Oles
  • @Yqua said:

    Wait, you set an password on your ssh key? Then you need to use a software like Pageant (which is included with Putty) to use the ssh key.

    Can I re change the new ssh key to new one this time without password

    Thanked by (1)Not_Oles
  • @Yqua said:

    Wait, you set an password on your ssh key? Then you need to use a software like Pageant (which is included with Putty) to use the ssh key.

    Also delete the other ones

    Thanked by (1)Not_Oles
  • @NotRealZeyad said:

    Can I re change the new ssh key to new one this time without password

    Yes, you can. Just send your new public key in this thread.

    Thanked by (1)Not_Oles
  • @Yqua said:

    Wait, you set an password on your ssh key? Then you need to use a software like Pageant (which is included with Putty) to use the ssh key.

    Here is one without a password ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBUp/JhS4fx3Ht9SSaZaeC/OGP9vGwZ31j+KwakhVDxR

    and made sure its correct

    Thanked by (1)Not_Oles
  • @Yqua said:

    Yes, you can. Just send your new public key in this thread.

    Also am very sorry that this conversation is taking a bit of time am new to dealing with ssh

    Thanked by (1)Not_Oles
  • @NotRealZeyad said:

    Here is one without a password ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBUp/JhS4fx3Ht9SSaZaeC/OGP9vGwZ31j+KwakhVDxR

    and made sure its correct

    I just added your new SSH Key and removed the old ones.

    Thanked by (2)bruh21 Not_Oles
  • @Yqua said:

    I just added your new SSH Key and removed the old ones.

    ok hopefully it now works

    Thanked by (1)Not_Oles
  • @Yqua said:

    I just added your new SSH Key and removed the old ones.

    It works thank you man!

    Thanked by (1)Not_Oles
  • Not_OlesNot_Oles Hosting ProviderContent Writer

    @NgocNguyen8372 said:

    Hi sorry for putting the wrong format
    Here the right one

    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINJuWhz2Bdz1oMXWkhqOgdRQQL4/ntWtNyfUt9NqhrkF eddsa-key-20230429

    Also sorry for long wait

    Hi @NgocNguyen8372!

    Your key looks okay now. Thanks for the update.

    Since you are new here at LES, would you like to introduce yourself? I'm sure everybody would be glad to hear a little about who (Ngoc Nguyen?) and where you are, your education, work, hobbies, etc. What are your computer interests? What do you want to do on the server?

    Again, welcome to LES and to MetalVPS!

    Best wishes!

    Tom

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    @cmeerw said:

    FWIW, I'd usually add a @reboot cron job to the user's crontab that then runs the desired command in a screen session (tmux would probably also work), so I can attach to it later on.

    Wait! Aren't we supposed to use systemd for this kind of stuff? :)

    notoles@fsn:~$ which crontab
    /usr/bin/crontab
    notoles@fsn:~$ ls -l /usr/bin/crontab
    -rwxr-sr-x 1 root crontab 43648 Mar  2 07:33 /usr/bin/crontab
    notoles@fsn:~$ man crontab
    CRONTAB(1)                                  General Commands Manual                                 CRONTAB(1)
    
    NAME
           crontab - maintain crontab files for individual users (Vixie Cron)
    
    SYNOPSIS
           crontab [ -h]
           crontab [ -u user ] [-n] file
           crontab [ -u user ] [ -i ] { -e | -l | -r }
    
    DESCRIPTION
           crontab  is  the program used to install, deinstall or list the tables used to drive the cron(8) daemon
           in  Vixie  Cron.   Each  user  can  have  their  own  crontab,  and   though   these   are   files   in
           /var/spool/cron/crontabs, they are not intended to be edited directly.
    
           If  the /etc/cron.allow file exists, then you must be listed (one user per line) therein in order to be
           allowed to use this command.  If the /etc/cron.allow file does not exist but  the  /etc/cron.deny  file
           does exist, then you must not be listed in the /etc/cron.deny file in order to use this command.
    
           If  neither  of these files exists, then depending on site-dependent configuration parameters, only the
           super user will be allowed to use this command, or all users will be able to use this command.
    [ . . . ]
    notoles@fsn:~$ crontab -u notoles -h
    usage:  crontab [-u user] [-n] file
            crontab [ -u user ] [ -i ] { -e | -l | -r }
    
            -h      (displays this help message)
    
            file    (default operation is replace, per 1003.2)
            -n      (dry run: checks the syntax, then bails out)
            -u user (choose the user whose crontab is touched)
    
            -e      (edit user's crontab)
            -l      (list user's crontab)
            -r      (delete user's crontab)
    
            -i      (prompt before deleting user's crontab)
    notoles@fsn:~$ 
    

    So I haven't yet tried crontab as an unprivileged user. There seems to be neither the /etc/cron.allow nor the /etc/cron.deny file on our server. If somebody wants to try crontab before I get around to it, please let us know.

    See also https://askubuntu.com/questions/216692/where-is-the-user-crontab-stored about crontab upgrade deletions and the importance of backups. Please note that we're running Debian.

    Thanks to @cmeerw for contributing extra fun! <3

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    @Yqua said: I'm helping @Not_Oles out with MetalVPS, as an volunteer system administrator, due to the increase in users.

    Welcome @Yqua! Thank you so much! 🌟🌟🌟🌟🌟

    Thanked by (1)Yqua
  • edited April 2023

    @Not_Oles said:

    Wait! Aren't we supposed to use systemd for this kind of stuff? :)

    notoles@fsn:~$ which crontab
    /usr/bin/crontab
    notoles@fsn:~$ ls -l /usr/bin/crontab
    -rwxr-sr-x 1 root crontab 43648 Mar  2 07:33 /usr/bin/crontab
    notoles@fsn:~$ man crontab
    CRONTAB(1)                                  General Commands Manual                                 CRONTAB(1)
    
    NAME
           crontab - maintain crontab files for individual users (Vixie Cron)
    
    SYNOPSIS
           crontab [ -h]
           crontab [ -u user ] [-n] file
           crontab [ -u user ] [ -i ] { -e | -l | -r }
    
    DESCRIPTION
           crontab  is  the program used to install, deinstall or list the tables used to drive the cron(8) daemon
           in  Vixie  Cron.   Each  user  can  have  their  own  crontab,  and   though   these   are   files   in
           /var/spool/cron/crontabs, they are not intended to be edited directly.
    
           If  the /etc/cron.allow file exists, then you must be listed (one user per line) therein in order to be
           allowed to use this command.  If the /etc/cron.allow file does not exist but  the  /etc/cron.deny  file
           does exist, then you must not be listed in the /etc/cron.deny file in order to use this command.
    
           If  neither  of these files exists, then depending on site-dependent configuration parameters, only the
           super user will be allowed to use this command, or all users will be able to use this command.
    [ . . . ]
    notoles@fsn:~$ crontab -u notoles -h
    usage:  crontab [-u user] [-n] file
            crontab [ -u user ] [ -i ] { -e | -l | -r }
    
            -h      (displays this help message)
    
            file    (default operation is replace, per 1003.2)
            -n      (dry run: checks the syntax, then bails out)
            -u user (choose the user whose crontab is touched)
    
            -e      (edit user's crontab)
            -l      (list user's crontab)
            -r      (delete user's crontab)
    
            -i      (prompt before deleting user's crontab)
    notoles@fsn:~$ 
    

    So I haven't yet tried crontab as an unprivileged user. There seems to be neither the /etc/cron.allow nor the /etc/cron.deny file on our server. If somebody wants to try crontab before I get around to it, please let us know.

    See also https://askubuntu.com/questions/216692/where-is-the-user-crontab-stored about crontab upgrade deletions and the importance of backups. Please note that we're running Debian.

    Thanks to @cmeerw for contributing extra fun! <3

    So you can also try screen command
    Its will keep that task run but your ssh can close, its dont work if server restart (yep)
    Look at my uptime (my sleep time actually lol) if i use screen command
    image

    Thanked by (1)Not_Oles
  • @Not_Oles said:

    Hi @NgocNguyen8372!

    Your key looks okay now. Thanks for the update.

    Since you are new here at LES, would you like to introduce yourself? I'm sure everybody would be glad to hear a little about who (Ngoc Nguyen?) and where you are, your education, work, hobbies, etc. What are your computer interests? What do you want to do on the server?

    Again, welcome to LES and to MetalVPS!

    Best wishes!

    Tom

    I’m Ngoc Nguyen
    I’m from Hanoi, Vietnam
    My education is grade 11
    My hobbies is to play roblox and mess around with computer stuff
    My interest is to be able learn something on vm
    And I love to have a vps myself

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    @NgocNguyen8372 said:

    I’m Ngoc Nguyen
    I’m from Hanoi, Vietnam
    My education is grade 11
    My hobbies is to play roblox and mess around with computer stuff
    My interest is to be able learn something on vm
    And I love to have a vps myself

    Hi @NgocNguyen8372!

    Welcome aboard at MetalVPS! Hope you have fun with your new account!

    Here you can check my work:

    root@fsn /home/ngocnguyen # ls -alR
    .:
    total 28
    drwx------  3 ngocnguyen ngocnguyen 4096 Apr 30 01:37 .
    drwxr-xr-x 30 root       root       4096 Apr 30 01:35 ..
    -rw-r--r--  1 ngocnguyen ngocnguyen  220 Apr 30 01:35 .bash_logout
    -rw-r--r--  1 ngocnguyen ngocnguyen 3526 Apr 30 01:35 .bashrc
    -rw-r--r--  1 ngocnguyen ngocnguyen    0 Apr 30 01:35 .cloud-locale-test.skip
    -rw-------  1 ngocnguyen ngocnguyen   17 Apr 30 01:37 password
    -rw-r--r--  1 ngocnguyen ngocnguyen  807 Apr 30 01:35 .profile
    drwx------  2 ngocnguyen ngocnguyen 4096 Apr 30 01:38 .ssh
    
    ./.ssh:
    total 12
    drwx------ 2 ngocnguyen ngocnguyen 4096 Apr 30 01:38 .
    drwx------ 3 ngocnguyen ngocnguyen 4096 Apr 30 01:37 ..
    -rw------- 1 ngocnguyen ngocnguyen  100 Apr 30 01:40 authorized_keys
    root@fsn /home/ngocnguyen # cat .ssh/authorized_keys 
    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINJuWhz2Bdz1oMXWkhqOgdRQQL4/ntWtNyfUt9NqhrkF eddsa-key-20230429
    root@fsn /home/ngocnguyen # 
    

    Here, again, are some basics:

    • Password access has been disabled. You need your key to log in.
    • Your password is in a mode 600 file in your home directory.
    • Your password might be needed later for sudo. But you have not yet been added to the sudo group.
    • Feel free to change your password.
    • You have been added to the kvm group.
    • If you want to make a KVM VPS it is recommended to start with slirp following this tutorial.
    • Alternatives include setting up proot as described earlier in this thread.
    • Additional node configuration might be needed for LXC and non-slirp qemu.
    • Please post your questions and progress reports and tutorials here in this thread. It benefits everyone to help answer everyone else's questions and to learn from everyone else's progress reports and tutorials. So, please post here instead of sending me PMs (although PMs are okay if privacy really is necessary).

    It's wonderful to have you as our new neighbor! Thank you for joining! <3

    Best wishes!

    Tom

  • @Not_Oles said:

    Hi @NgocNguyen8372!

    Welcome aboard at MetalVPS! Hope you have fun with your new account!

    Here you can check my work:

    root@fsn /home/ngocnguyen # ls -alR
    .:
    total 28
    drwx------  3 ngocnguyen ngocnguyen 4096 Apr 30 01:37 .
    drwxr-xr-x 30 root       root       4096 Apr 30 01:35 ..
    -rw-r--r--  1 ngocnguyen ngocnguyen  220 Apr 30 01:35 .bash_logout
    -rw-r--r--  1 ngocnguyen ngocnguyen 3526 Apr 30 01:35 .bashrc
    -rw-r--r--  1 ngocnguyen ngocnguyen    0 Apr 30 01:35 .cloud-locale-test.skip
    -rw-------  1 ngocnguyen ngocnguyen   17 Apr 30 01:37 password
    -rw-r--r--  1 ngocnguyen ngocnguyen  807 Apr 30 01:35 .profile
    drwx------  2 ngocnguyen ngocnguyen 4096 Apr 30 01:38 .ssh
    
    ./.ssh:
    total 12
    drwx------ 2 ngocnguyen ngocnguyen 4096 Apr 30 01:38 .
    drwx------ 3 ngocnguyen ngocnguyen 4096 Apr 30 01:37 ..
    -rw------- 1 ngocnguyen ngocnguyen  100 Apr 30 01:40 authorized_keys
    root@fsn /home/ngocnguyen # cat .ssh/authorized_keys 
    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINJuWhz2Bdz1oMXWkhqOgdRQQL4/ntWtNyfUt9NqhrkF eddsa-key-20230429
    root@fsn /home/ngocnguyen # 
    

    Here, again, are some basics:

    • Password access has been disabled. You need your key to log in.
    • Your password is in a mode 600 file in your home directory.
    • Your password might be needed later for sudo. But you have not yet been added to the sudo group.
    • Feel free to change your password.
    • You have been added to the kvm group.
    • If you want to make a KVM VPS it is recommended to start with slirp following this tutorial.
    • Alternatives include setting up proot as described earlier in this thread.
    • Additional node configuration might be needed for LXC and non-slirp qemu.
    • Please post your questions and progress reports and tutorials here in this thread. It benefits everyone to help answer everyone else's questions and to learn from everyone else's progress reports and tutorials. So, please post here instead of sending me PMs (although PMs are okay if privacy really is necessary).

    It's wonderful to have you as our new neighbor! Thank you for joining! <3

    Best wishes!

    Tom

    Thank but where do I login

    Thanked by (1)Not_Oles
  • @NgocNguyen8372 said:
    Thank but where do I login

    I imagine it would be

    ssh ngocnguyen@fsn.metalvps.com -p 42365
    
    Thanked by (1)Not_Oles
Sign In or Register to comment.