I'm connecting via putty (ssh and keyfile) to the server.
then i type the follwing command
Code: Select all
telnet 127.0.0.1 1234
Is it possible to deliver the nickname and password in this command?
EDIT and Solved: I'm using expect on my shell.
eggdropautologin.sh
Code: Select all
#!/usr/bin/expect -f
spawn telnet 127.0.0.1 1234
expect -re "Nickname"
send "tessa1\n"
expect -re "Passwort"
send "XXXXXXXXXXXXXXX\n"
interact