Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Feb 5, 2019
1 parent d81f20b commit 0dc74cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ require "ssh2"
session = SSH2::Session.open("localhost", 2222)
session.login("root", "somepassword")
ch = session.open_session
channel = session.open_session
# request the terminal has echo mode off
channel.request_pty("vt100", [{SSH2::TerminalMode::ECHO, 0u32}])
ch.shell
channel.shell
# Send commands
spawn {
Expand Down

0 comments on commit 0dc74cb

Please sign in to comment.