Automatic write enabling on SSH connection: Difference between revisions

From MIB-Helper.com Wiki
Jump to navigation Jump to search
Created page with " ssh root@10.173.189.1 mount -uw /net/mmx/mnt/app echo "/bin/mount -uw /net/mmx/fs/sda0 2>/dev/null" >> /net/mmx/mnt/app/root/.profile echo "/bin/mount -uw /net/mmx/fs/sda1 2>/dev/null" >> /net/mmx/mnt/app/root/.profile echo "/bin/mount -uw /mnt/app" >> /net/mmx/mnt/app/root/.profile echo "/bin/mount -uw /mnt/system" >> /net/mmx/mnt/app/root/.profile mount -ur /net/mmx/mnt/app exit"
 
No edit summary
Line 1: Line 1:
== .profile method ==
  ssh root@10.173.189.1
  ssh root@10.173.189.1
  mount -uw /net/mmx/mnt/app  
  mount -uw /net/mmx/mnt/app  
  echo "/bin/mount -uw /net/mmx/fs/sda0 2>/dev/null" >> /net/mmx/mnt/app/root/.profile
  echo "/bin/mount -uw /net/mmx/fs/sda0 2>/dev/null" >> /net/mmx/mnt/app/root/.profile
Line 5: Line 8:
  echo "/bin/mount -uw /mnt/app" >> /net/mmx/mnt/app/root/.profile
  echo "/bin/mount -uw /mnt/app" >> /net/mmx/mnt/app/root/.profile
  echo "/bin/mount -uw /mnt/system" >> /net/mmx/mnt/app/root/.profile
  echo "/bin/mount -uw /mnt/system" >> /net/mmx/mnt/app/root/.profile
sync
  mount -ur /net/mmx/mnt/app
  mount -ur /net/mmx/mnt/app
  exit
  exit

Revision as of 13:29, 17 May 2026

.profile method

ssh root@10.173.189.1

mount -uw /net/mmx/mnt/app 
echo "/bin/mount -uw /net/mmx/fs/sda0 2>/dev/null" >> /net/mmx/mnt/app/root/.profile
echo "/bin/mount -uw /net/mmx/fs/sda1 2>/dev/null" >> /net/mmx/mnt/app/root/.profile
echo "/bin/mount -uw /mnt/app" >> /net/mmx/mnt/app/root/.profile
echo "/bin/mount -uw /mnt/system" >> /net/mmx/mnt/app/root/.profile
sync
mount -ur /net/mmx/mnt/app

exit