mac-telnet without wirting username and password

Hi!

Is there a possiblity to mac-telnet from one unit to another without typing the username and password all the time?

Is there a way to trigger on-text of login and password? So I can just make a script access the other unit and execute the script and log out again so I can start using it straight away.

Try using this
http://forum.linux.org.bd/viewtopic.php?t=307&highlight=&sid=c0ea7edd5b9fe69f26bb7822ab36283a

rafiq…
http://www.linux.org.bd

Well, I was thinking of doing from routeros to routeros with use of mac-telnet…

But after looking through documentation it seems that i won’t work. Tried figure out a way to make a script trigger on login prompt to make it automaticly insert username and password, but no luck.

i use something like this in Linux environment

i have imported dsa-key into router, so i can login without username and password.

also. using this expect script i can login from host ROS box into other using mac-telnet.

to run command $ ./set_remote_ip

$$ cat set_remote_ip 
#!/usr/bin/expect
set host1 [lindex $argv 0]
set mac [lindex $argv 1]
set ipaddress [lindex $argv 2]
set ses 1

spawn "ssh" "$host1" "-l" "admin";
set ses $spawn_id
set timeout 200
expect -i $ses "*admin*@*]*>"
exp_send -i $ses "\r"
expect -i $ses "*admin*@*]*>"
exp_send -i $ses "/tool mac-telnet $mac\r"
expect -i $ses "*Login:*"
exp_send -i $ses "admin\r"
expect -i $ses "*Password:*"
exp_send -i $ses "\r"
expect -i $ses "*admin*@*]*>"
exp_send -i $ses "/ip address add address=$ipaddress interface=\[/interface ethernet find mac-address=$mac\]\r"
expect -i $ses "*admin*@*]*>"
close