Dashboard opens with blank only

Re: Dashboard opens with blank only

Postby Jocko » Mon Mar 22, 2021 8:24 pm

if I remember well with this sshd.i file, you have to use the port 2222 (on port 22, authentication with a rsa key is disabled)

I confirm you have to use the port 2222
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Dashboard opens with blank only

Postby fariaslcfs » Mon Mar 22, 2021 8:29 pm

fvdw wrote:I do not have such an extended log, I use this version of putty (windows version)

Actually, you have it. Both versions behave the same way.
Just right click the toppest part of the SSH session screen, and a menu will appear.
Tried with your version, but the result was the same.
fariaslcfs
Donator VIP
Donator VIP
 
Posts: 114
Joined: Thu Feb 18, 2021 4:55 pm

Re: Dashboard opens with blank only

Postby fariaslcfs » Mon Mar 22, 2021 8:31 pm

Jocko wrote:if I remember well with this sshd.i file, you have to use the port 2222 (on port 22, authentication with a rsa key is disabled)
I confirm you have to use the port 2222

"Network error: Connection refused".
fariaslcfs
Donator VIP
Donator VIP
 
Posts: 114
Joined: Thu Feb 18, 2021 4:55 pm

Re: Dashboard opens with blank only

Postby Jocko » Mon Mar 22, 2021 8:34 pm

What lacie fw do you have ?

According to old source : "Until firmware version 2.0.4 ssh port is 22, from firmware 2.0.5 is 2222"
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Dashboard opens with blank only

Postby fvdw » Mon Mar 22, 2021 8:37 pm

yep, you are right, this is what I get when connection via ssh to our firmware

Code: Select all
2021-03-22 21:32:06   Looking up host "192.168.1.54"
2021-03-22 21:32:06   Connecting to 192.168.1.54 port 22
2021-03-22 21:32:06   Server version: SSH-2.0-dropbear_2014.63
2021-03-22 21:32:06   Using SSH protocol version 2
2021-03-22 21:32:06   We claim version: SSH-2.0-PuTTY_Release_0.62
2021-03-22 21:32:06   Using Diffie-Hellman with standard group "group14"
2021-03-22 21:32:06   Doing Diffie-Hellman key exchange with hash SHA-1
2021-03-22 21:32:06   Host key fingerprint is:
2021-03-22 21:32:06   ssh-rsa 1024 00:64:9b:86:62:d1:7c:66:e2:67:73:d4:db:f6:a6:e6
2021-03-22 21:32:06   Initialised AES-256 SDCTR client->server encryption
2021-03-22 21:32:06   Initialised HMAC-SHA1 client->server MAC algorithm
2021-03-22 21:32:06   Initialised AES-256 SDCTR server->client encryption
2021-03-22 21:32:06   Initialised HMAC-SHA1 server->client MAC algorithm
2021-03-22 21:32:38   Sent password
2021-03-22 21:32:38   Password authentication failed
2021-03-22 21:32:51   Sent password
2021-03-22 21:32:51   Access granted
2021-03-22 21:32:51   Opened channel for session
2021-03-22 21:32:51   Allocated pty (ospeed 38400bps, ispeed 38400bps)
2021-03-22 21:32:51   Started a shell/command

When allocating pty it mentions speed, I don't see that in yours
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Dashboard opens with blank only

Postby fariaslcfs » Mon Mar 22, 2021 8:38 pm

Jocko wrote:What lacie fw do you have ?
According to old source : "Until firmware version 2.0.4 ssh port is 22, from firmware 2.0.5 is 2222"

Don't know. Do you know where I can find such information in Lacie files?
fariaslcfs
Donator VIP
Donator VIP
 
Posts: 114
Joined: Thu Feb 18, 2021 4:55 pm

Re: Dashboard opens with blank only

Postby fvdw » Mon Mar 22, 2021 8:40 pm

speed is set in >connectioN data terminal details
(38400,38400)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Dashboard opens with blank only

Postby fariaslcfs » Mon Mar 22, 2021 8:43 pm

fvdw wrote:speed is set in >connectioN data terminal details
(38400,38400)

Correct.
There is also a Proxy section, but that wouldn't probably be the problem, as the remote system is refusing port 2222 (and so, receiving the demand), correct?
P.S. Must leave workplace now. I'll be back in contact tomorrow or wednesday. Good evening.
fariaslcfs
Donator VIP
Donator VIP
 
Posts: 114
Joined: Thu Feb 18, 2021 4:55 pm

Re: Dashboard opens with blank only

Postby fvdw » Mon Mar 22, 2021 9:27 pm

ok no problem.
To progress we need the content of file ssh.py
It is located on md8 in folder /usr/lib/python2.6/site-packages/unicorn/sharing
This file seems to write the sshd config file used to start sshd service

(can also be python2.7 dependent on firmware version)

In this file we can see which port is used
around line 29
Code: Select all
    service_name = 'sshd'

    config_values = [
        (u'always_on', BooleanType, True),
        (u'port', IntType, 2222),
        (u'chroot_directory', UnicodeType, u'/'),
        (u'authorized_keys', UnicodeType, u''),
    ]

In this example it is port 2222 (firmware version from 2011...old)


and setting if root acces is allowed, and which user are allowed around line 130
Code: Select all
  def write_config(self):
        """Writes the ssh config, using the current settings."""
        config_dict = {
            'global': {
                'Port': set([self.config.port]),
                'Protocol': '2',
                'Subsystem': 'sftp internal-sftp',
            },
            'auth': {
                'PermitRootLogin': 'no',
                'AllowUsers': [],
            },
            'rules': {},

probaly settings will be that no root login is allowed and no user are defined that are authorized, so ssh daemon closes connection even when a correct password is entered

you can get this file to your pc by using tftp command in standalone kernel
Code: Select all
tftp -l /md8//usr/lib/python2.6/site-packages/unicorn/sharing/ssh.py -r ssh.py -p ip-pc

The file should then be in tftp folder of fvdw-sl console
Pack it in a zip archive and post it here so we can modify it
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Dashboard opens with blank only

Postby fariaslcfs » Wed Mar 24, 2021 12:26 pm

fvdw wrote:ok no problem.
To progress we need the content of file ssh.py
It is located on md8 in folder /usr/lib/python2.6/site-packages/unicorn/sharing
This file seems to write the sshd config file used to start sshd service
(can also be python2.7 dependent on firmware version)

The file ssh.py does not exist in the given subdirectory.
Code: Select all
dw-kirkwood):/md8/usr/lib/python2.6/site-packages/unicorn/sharing # ls
__init__.py         afp.pyo             printer.pyo         share.pyc           smb.pyc
__init__.pyc        ftp.py              printing.py         share.pyo           smb.pyo
__init__.pyo        ftp.pyc             printing.pyc        share_services.py
access              ftp.pyo             printing.pyo        share_services.pyc
afp.py              printer.py          quota               share_services.pyo
afp.pyc             printer.pyc         share.py            smb.py
fariaslcfs
Donator VIP
Donator VIP
 
Posts: 114
Joined: Thu Feb 18, 2021 4:55 pm

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 6 guests