Bitcoin Forum

Bitcoin => Mining support => Topic started by: edwardBe on March 13, 2018, 02:14:58 AM



Title: Using a Windows FTP client to connect to an Antminer
Post by: edwardBe on March 13, 2018, 02:14:58 AM
I'm posting this in the Bitcoin hardware forum since it seems to apply to nearly all recently released antminers. I have tried a few times to connect to an Antminer with cute ftp in order to edit out the antbleed lines in the hosts file, but cute ftp hangs without connecting.

I was able to use PuTTY to connect and was able to cd to the etc folder, but the command "sudo nano /etc/hosts returns "sudo not found" so I guess the version of linux the antminers run doesn't include the program sudo.

Is there anyone who knows more than the scraps of linux that I know who is willing to help?

Thanks,

edwardBe


Title: Re: Using a Windows FTP client to connect to an Antminer
Post by: psycodad on March 13, 2018, 09:22:33 AM
There is no ftp service listening on the Antminers (at least not on my L3+).
You can use putty to login as root and add whatever you want to /etc/hosts.
Take note that there is also no nano installed, so your command won't work, even if you had sudo installed.

Also I believe that upgrading the firmware should get rid of that "Feature". Elsewise if you don't want to upgrade firmware or just want to make sure in case, you can add the line with the following command to your hosts-file when logged in as root via putty:

Code:
echo "127.0.0.1 auth.minerlink.com" >> /etc/hosts

HTH


Title: Re: Using a Windows FTP client to connect to an Antminer
Post by: SGMPhil on March 13, 2018, 10:54:08 AM
Use WinSCP - when connecting to the miner, use the SCP protocol. It works fine and has a built-in editor.

https://winscp.net/eng/download.php (https://winscp.net/eng/download.php)


Title: Re: Using a Windows FTP client to connect to an Antminer
Post by: edwardBe on March 13, 2018, 11:13:10 AM
Quote from: psycodad
Also I believe that upgrading the firmware should get rid of that "Feature". Elsewise if you don't want to upgrade firmware or just want to make sure in case, you can add the line with the following command to your hosts-file when logged in as root via putty:
Code:
echo "127.0.0.1 auth.minerlink.com" >> /etc/hosts
Quote from: SGMPhil
Use WinSCP - when connecting to the miner, use the SCP protocol. It works fine and has a built-in editor.

https://winscp.net/eng/download.php (https://winscp.net/eng/download.php)

Thanks to you both! Both solutions worked. I was able to use WinSCP to verify the changes.


Title: Re: Using a Windows FTP client to connect to an Antminer
Post by: SGMPhil on March 13, 2018, 11:32:33 AM
Glad to be of help :)