Thank you, Richard. You're right! openssh-server package was not installed. After installing it, scp/ssh works both ways.
Thanks to all for your kind help. On 4 Jun 2014 05:52, "Richard Elling" <[email protected]> wrote: > On Jun 3, 2014, at 10:06 AM, Ganapathy S A via smartos-discuss < > [email protected]> wrote: > > > Hi Alain, > > > > I'm able to ssh/scp to SmartOS (actually a VBox guest in Ubuntu host) > but not the other way around (from SmartOS to Ubuntu)! Following is the > error I'm getting. What config might I miss on the SmartOS side? Or on the > Ubuntu side? > > IIRC, for at least some Ubuntu distributions ssh server is not installed. > This would explain a connection refused. Is the openssh-server package > installed? > Also, use "netstat -a" to see if there is a listener on port 22 (*:ssh) > -- richard > > > > > ssh [email protected] > > ssh: connect to host a.b.c.d port 22: Connection refused > > > > > > Regards, > > Ganapathy > > > > > > On 26 May 2014 20:48, Alain O'Dea <[email protected]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On Mon 26 May 2014 03:06:10 PM UTC, Ganapathy S A wrote: > > > Thanks Alain for the advice :-) > > > > > > Regards, > > > Ganapathy > > > > > > > > > On 26 May 2014 19:03, Alain O'Dea <[email protected] > > > <mailto:[email protected]>> wrote: > > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > On Sun 25 May 2014 09:40:40 AM UTC, Ganapathy S A via > smartos-discuss > > > wrote: > > > > Hello, > > > > > > > > How to I send mail (a log file or source code or whatever but > text > > > > only) from SmartOS command line? And, how to copy the command > line > > > > text of SmartOS when it is run as a guest in Ubuntu host? > > > > > > > > Regards, > > > > Ganapathy > > > > > > The best way to get content on or off a SmartOS GZ (Global Zone), > > > OS VM > > > (local zone), or KVM (hardware virtual machine) is via SSH. SSH > runs > > > by default on Joyent-provided images so you just need to assign an > IP. > > > > > > Adding persistent behavior (like SMTP) in the GZ goes against its > > > intent and design and will likely put you in frustrating, > yak-shaving > > > territory. > > > > > > Jonathan Perkin has a very good article explaining the role of the > > > Global Zone: > > > http://www.perkin.org.uk/posts/smartos-and-the-global-zone.html > > > > > > I recommend using SSH and SCP for moving content on and off SmartOS > > > boxes and their guests. > > > -----BEGIN PGP SIGNATURE----- > > > Version: GnuPG v1 > > > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > > > > > iQEcBAEBAgAGBQJTg0KWAAoJEP0rIXJNjNSAVdgIAMuC3lkqjluCY6j1av1io5mQ > > > 0LHNt0x4oiMtUnflThU1UDVfj/564mlCU7MkNaEGJldrPXVzHJIrXFlA+aQ4ARys > > > NhA/ZN7iZburKEnwg8GSQaRMWn2YncmS0+4Q2UjA8s6v+MMIuiZlZQcO9+ZzRtCC > > > hPcfDpzsAkGNkmemy7dGFdoWrY/j5LPbvJlC70vx7tlQJaM5UvPCxoGvDbNcafqT > > > 8qdaWGQcV4sP6Wv3Z61wb4zXISOMclugNVm/WIBUItXEK25MoVQ1RRDPrPWZoU+p > > > KB0rOE9qsSPTGLUM++5SAt6fg0iCA8dqWy3PgvtJCU/Q0sdkv58nTU42nNXs/Zc= > > > =Uaru > > > -----END PGP SIGNATURE----- > > > > My pleasure. > > > > Here is some guidance on the wiki about supported persistent > > configuration of the global zone: > > > http://wiki.smartos.org/display/DOC/Persistent+Configuration+for+the+Global+Zone > > > > Of particular interest is the persistent configuration of SSH pubkey > > authentication which is handy for secure automation. > > > > Best, > > Alain > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1 > > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > > > iQEcBAEBAgAGBQJTg1syAAoJEP0rIXJNjNSA3vkIAI8x7BaKV405knlLiT7jbrwS > > Jed1jBHRSbOSve6fM9DFwApOOYqCyV+JdfVxYVqEhW5HcV9JTxQzbzO9KRPoRlN/ > > 7Ag85P1cmzTDT9gWeUsOUC858Kt8MzDxaeIKwAmbioGGg4lKoyrt0A3W6jUzHGji > > kEbGHgk9ix2uZfjPL+KIkyOG7/gyFrRqusHTP9ZhmiEw9Mt302v1QfzXSUtDMxkt > > munT5sKG3iHhpW2KJolrbHvDlHs9B6QYTVEbUEWmxkfwbzN8aB0b/LjSIWPtIcrB > > vQw97LcZNJpe187Jxe5BVysflbwWskMNbal0xkPhHRlLz8cqH3pG6bw2fteN5ps= > > =zP4q > > -----END PGP SIGNATURE----- > > > > > > smartos-discuss | Archives | Modify Your Subscription > > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
