FTP to MIB: Difference between revisions
Jump to navigation
Jump to search
Created page with "== MHIG and MHI2 == Here's how to install <code>sshd</code> and setup your environment to connect with MIB over <code>ssh</code>, <code>sftp</code>, and <code>scp</code>. === Prepare local machine === On your local machine start with editing the <code>~/.ssh/config</code> file: nano ~/.ssh/config add those lines: Host mhig-ap StrictHostKeyChecking no HostKeyAlgorithms +ssh-rsa HostName 192.168.1.1 User root Host mhi2-ap StrictHostKeyChecking no HostK..." |
|||
| Line 32: | Line 32: | ||
Install <code>sshd</code> via More Incredible Bash. | Install <code>sshd</code> via More Incredible Bash. | ||
//todo | //todo | ||
Find root password or change root password via More Incredible Bash. | Find root password or change root password via More Incredible Bash. | ||
//todo | //todo | ||
Connect with MIB | Connect with MIB | ||
Revision as of 08:32, 16 September 2026
MHIG and MHI2
Here's how to install sshd and setup your environment to connect with MIB over ssh, sftp, and scp.
Prepare local machine
On your local machine start with editing the ~/.ssh/config file:
nano ~/.ssh/config
add those lines:
Host mhig-ap StrictHostKeyChecking no HostKeyAlgorithms +ssh-rsa HostName 192.168.1.1 User root Host mhi2-ap StrictHostKeyChecking no HostKeyAlgorithms +ssh-rsa HostName 10.173.189.1 User root Host mib-dlink StrictHostKeyChecking no HostKeyAlgorithms +ssh-rsa HostName 172.16.250.248 User root
Example above is using 192.168.1.1, 10.173.189.1, and 172.16.250.248 as the IP address. Those are default addresses that MIB1 and MIB2 units are using but might be different in your setup.
Prepare MIB
Install sshd via More Incredible Bash.
//todo
Find root password or change root password via More Incredible Bash.
//todo
Connect with MIB
sshpass -p "8scoUc70" ssh mhig-ap
Mount file system as writable
mount -uw /net/mmx/mnt/app && mount -uw /net/mmx/mnt/system
Create script for running the server
cd /mnt/app/eso/hmi/scripts/ //todo chmod +x sftp-server.sh
Edit /mnt/app/eso/hmi/engdefs/scripts/ssh/etc/sshd_config file
Find line
Subsystem sftp /net/mmx/mnt/app/eso/hmi/engdefs/scripts/ssh/usr/libexec/sftp-server
and replace it with
Subsystem sftp /net/mmx/mnt/app/eso/hmi/scripts/sftp-server.sh