abkai
abkai

Reputation: 591

single line telnet commands using terminal

I need to pull something along the lines of "telnet [email protected]: irinject BACK" however this refuses to work. There is no password required.

What is the correct syntax to perform this task using the terminal on Ubuntu 11.10?

Upvotes: 0

Views: 1073

Answers (1)

geekosaur
geekosaur

Reputation: 61369

If you absolutely must do it this way, use echo or etc. to pipe commands to the telnet session — and be ready to reinstall machines as they get hacked.

Strongly preferred is to use ssh with key access; you can even include the command that way.

ssh -i path/to/root-key root@host command

Upvotes: 2

Related Questions