Ad Widget

Collapse

Zabbix Appliance v3 and Putty

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • n3o
    Junior Member
    • Jun 2016
    • 27

    #1

    Zabbix Appliance v3 and Putty

    Hello all,

    I am a newbie to zabbix and I have setup zabbix appliance on VMware workstation and is working great.

    The issue now is that I use Putty to access the server but I cannot login using root user.. I can only use appliance user.

    I can successfully login with root user on my VMware workstation on the server but not through Putty.

    I have also tried to login with WinSCP to transfer files but with appliance user I get the "permission denied" message. I cannot login with root either.

    Can anyone please explain to me what I am doing wrong?

    Thanks
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you want login to appliance, please try use appliance user.
    And you can change to root after login by sudo command.

    Manual:

    Comment

    • n3o
      Junior Member
      • Jun 2016
      • 27

      #3
      Originally posted by Atsushi
      If you want login to appliance, please try use appliance user.
      And you can change to root after login by sudo command.

      Manual:
      https://www.zabbix.com/documentation..._configuration
      Thanks for the info but I already know that.

      I want to login as root on pUTTy and on WinSCP. Is there any way?

      Thanks

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by n3o
        Can anyone please explain to me what I am doing wrong?
        You are thinking that it is right to have straight remote access to root.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • n3o
          Junior Member
          • Jun 2016
          • 27

          #5
          Originally posted by kloczek
          You are thinking that it is right to have straight remote access to root.
          I know that is not right but is there any way around? if not then I will survive with that

          thanks

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            I think you need to edit /etc/ssh/sshd_config.
            It must be set so that you can directly login as root.
            For example, please try to set to yes for PermitRootLogin.

            Code:
            $ sudo su -
            # passwd
            # vi /etc/ssh/sshd_config
            # service ssh reload
            I also try to download the appliance.
            # now downloading...

            Comment

            • n3o
              Junior Member
              • Jun 2016
              • 27

              #7
              Originally posted by Atsushi
              I think you need to edit /etc/ssh/sshd_config.
              It must be set so that you can directly login as root.
              For example, please try to set to yes for PermitRootLogin.

              Code:
              $ sudo su -
              # passwd
              # vi /etc/ssh/sshd_config
              # service ssh reload
              I also try to download the appliance.
              # now downloading...
              Thanks mate. I have already solved my issue with a different approach.

              I have changed the folder permissions and I could access and edit the files in that folder.


              for example:

              sudo chown -R appliance: /etc/apache2/conf-enabled/

              I changed the conf-enabled folder's permissions





              See below from some more examples:

              sudo chown -R username:group directory
              will change ownership (both user and group) of all files and directories inside of directory and directory itself.

              sudo chown username:group directory
              will only change the permission of the folder directory but will leave the files and folders inside the directory alone.

              As enzotib mentioned, you need to use sudo to change the ownership from root to yourself.

              Edit:

              Note that if you use chown <user>: <file> (Note the left-out group), it will use the default group for that user.

              If you want to change only the group, you can use:

              chown :<group> <file>

              Comment

              Working...