How do I use SSH?


Forum: Networking
Topic: How do I use SSH?
started by: KB1LQC

Posted by KB1LQC on Dec. 27 2007,03:22
SO I searched the forums and the web, neither directly answering my question... how do you use SSH?  I go to system > Daemons > SSH > Start but after that there is nothing to tell me whats going on.  Am I supposed to see something?  what do I do?
Posted by john.martzouco on Dec. 27 2007,12:12
Hi KB,

SSH itself is a non-graphical set of tools.  You probably know already that its used to transfer files (scp, sftp), or log on remotely (ssh) and run commands in the shell.

When you click the SSH button on the Control Panle, it starts up the sshd daemon on your host machine and it ruins, waiting for an external connection.  You can verify that sshd is running by executing ps | grep "sshd" in a console window; it should reply with a one-liner showing you the PID of the daemon.

A prerequisite to using SSH is that your dsl user account have a password.  I don't know what the default password is for the account, so I run sudo passwd dsl in a console and assign a password to the account.  Don't let the warnings fool you, a short or easy password can be successfully assigned... it's the last message from passwd that counts... it should indicate success.

You'll also need to know the IP address of your host machine.  This is easy to get, it's right there on the DSL desktop in the torsmo display of information, top right corner desktop.  Let's call this aaa.bbb.ccc.ddd[/d]

The first time that you connect to your host, you will be see a security prompt regarding the host's [b]fingerprint
.  Type in yes to accept the connection.

Now that you have your system set up, you will need to connect to it from another machine; i.e the client.  Try any of the following to use the SSH suite of tools:

1) fetch a file:
   client side:  
       sftp dsl@aaa.bbb.ccc.ddd
       enter the dsl user's password
       get Events.cal
       exit

Now you'll have a copy of the Events.cal /home/dsl folder on your client machine.

2) send a file:
   client side:
       scp c:\autoexec.bat dsl@aaa.bbb.ccc.ddd:
       enter the dsl user's password

Now you'll have a copy of your autoexec.bat on the host machine in the /home/dsl folder.

3) run a command remotely:
   client side:
       ssh aaa.bbb.ccc.ddd
       enter the dsl user's password
       execute any non-graphical command you want... try ls

Of course, you're going to need a client machine with SSH tools installed as well.  If you're running Windows on your client, < copSSH > is the best choice currently.

Posted by curaga on Dec. 27 2007,16:14
And for your mobile phone, there's a version of Putty :)
Posted by KB1LQC on Dec. 27 2007,23:22
OK So I have it working now to an extent (THANKS!) though I had to set the IP static and us ifconfig to find it (I don't have that display in the top right corner for some reason...).  When I logon to it through ssh I only get the terminal and I would like to have a full desktop, I believe that can be done with SSH?  How would I set it up, I try starting x through the terminal SSH but it gives me an error (Picture of Error)

< http://picasaweb.google.com/bstguit....2207874 >

Thank You,

Posted by lucky13 on Dec. 27 2007,23:30
You want VNC for that, but you should definitely tunnel it through SSH for security reasons. There are guides all over the internet explaining how to do that.

(and boo @ ubuntu)

Posted by KB1LQC on Dec. 28 2007,05:43
OK I cant seem to get VNC to connect, Im still confused about some of the DSL specifics so could someone explain how to set up a server and connect to it?  The web isnt helping because a lot of it is not explaining how to do it in DSL and non of the others I've tried have worked in DSL (Commands and such)




Thanks!


KB1LQC

Posted by jpeters on Dec. 28 2007,09:11
VNC should be simple; just load it onto the machines you want to connect with, put in the IP address, and it asks for a password when it locates the remote computer.  If it doesn't, then it's a problem with firewalls, etc., or you may need to alter router settings.
Posted by curaga on Dec. 28 2007,15:27
If you want to do it with ssh, you would need full X, as they include xdm.. Vnc is easier
Posted by ^thehatsrule^ on Dec. 31 2007,02:59
Quote
OK I cant seem to get VNC to connect, Im still confused about some of the DSL specifics so could someone explain how to set up a server and connect to it?  The web isnt helping because a lot of it is not explaining how to do it in DSL and non of the others I've tried have worked in DSL (Commands and such)
I think there's a page on the wiki on VNC (or check the faq)

Quote (curaga @ Dec. 28 2007,10:27)
If you want to do it with ssh, you would need full X, as they include xdm.. Vnc is easier

I've used ssh'd with X forwarding on DSL's tinyx before... although not an entire desktop... but I would assume it would be possible.  You can forward X on the client side by using `ssh -X`

Posted by curaga on Dec. 31 2007,11:18
^hats^, how did you do it?

Pop an app on the tinyX running on another machine? That works, I was thinking about logging into full tinyX desktop from that ubuntu machine..

Posted by ^thehatsrule^ on Jan. 01 2008,04:20
Yes... I did nothing different from what one would do from a regular ssh session with X forwarding.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.