Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] Enabling SSH in mininet

Gregory Gee gee.developer at gmail.com
Wed Dec 4 19:07:31 PST 2013


  The sshd is probably not running in each host.  Take a look at this 
script.

https://github.com/mininet/mininet/blob/master/examples/sshd.py

Greg

On 04/12/2013 7:23 PM, Leo Osvald wrote:
> Hi folks,
>
> I'm running mininet on Linux 3.2 (Ubuntu 12.04) and having some issues 
> with SSH between the virtual hosts.
> It seems every attempt to establish an SSH connection between virtual 
> hosts on port 22 fails.
>
> I know that I can simply execute commands on remote virtual hosts 
> like: "h1 ping 10.0.0.2" or in general "h<n> <cmd>".
> However, I need to make SSH work since I want to run existing programs 
> which communicate over SSH, for example:
> some_prog /path/on/h1 ssh://10.0.0.2/path/on/h2
>
> Here are some outputs that might be useful:
> mininet> h1 ssh -v -v -v h2
> OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
> Pseudo-terminal will not be allocated because stdin is not a terminal.
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: /etc/ssh/ssh_config line 19: Applying options for *
> debug2: ssh_connect: needpriv 0
> debug1: Connecting to 10.0.0.2 [10.0.0.2] port 22.
> debug1: connect to address 10.0.0.2 port 22: Connection refused
>
> The above is when mininet is run as super-user (root). I also tried 
> logging in with my own username to h1's xterm and executing:
> ssh -v -v -v 10.0.0.2
> but the error is the corresponding output looks the same.
>
> Any ideas how can I make ssh working in mininet?
>
> Thanks,
> Leo
>
>
> _______________________________________________
> mininet-discuss mailing list
> mininet-discuss at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/mininet-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20131204/8fc94e97/attachment.html>


More information about the mininet-discuss mailing list