LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-07-2010, 05:19 AM   #1
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Rep: Reputation: 32
Some simple questions about SSH


Hiya,
Never dabbled in SSH before, so apologies if these are stupid questions.
1. I can connect to my slack 13 laptop via PuTTY on my GF's windows laptop. Can I actually copy things from my laptop to her machine using 'scp', or is PuTTY just used for browsing my linux filesystem on a windows machine? Google has been telling me about some software called 'WinSCP', which can copy files over, but I was just wandering if i can do this anyway using PuTTY?
2. The first time i did connect to my laptop from my GF's laptop (and also my ubuntu desktop) I get the warning about the host key is not cached in client machine("the server's rsa2 key fingerprint is: ssh-rsa XXXX xx:xx:xx:xx:xx:xx: etc etc). I understand why this happens, but I have no idea where to find this value on my host laptop. I can find the actual key, but not the fingerprint (i.e. the xx:xx:xx:xx:xx:xx:xx" etc). Can anyone tell me where I can find this please, as i blindly typed "yes" to get SSH working?
3. When i connect from the internet (rather than over my home network) will i need some kind of 'shell login account' to do this cuz i dont have a static IP. ie i'd like to do 'ssh tom@myAccount.com' rather than 'tom@123.432.32.23'? Where or how can i make this happen?

Many thanks in advance,

Tom
 
Old 03-07-2010, 05:49 AM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
I've been playing with Putty a bit lately and have found it very useful. I'll attempt to answer each of your points in turn.
1) You can use several ways to copy stuff around with putty. There psftp which looks like ftp on the client end but works over ssh. You can move files around with this. Putty also has the tool "pscp" which I use a lot to copy stuff from my linux host (just like scp on Linux).

2) I'm not sure about this value as I just type "yes" as you did and I'm not expert in ssh.

3) You should look at Dyndns which gives you a host name and lets you quickly and easily update the dns record as your hosts IP changes - there are even tools and scripts to do this. This means you could access your server via a URL. I would be VERY careful about opening ssh to the world though - it is open to abuse.
 
Old 03-07-2010, 06:12 AM   #3
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
You'll need to be root to do this...

Code:
cd /etc/ssh
ssh-keygen -l -f ssh_host_rsa_key

Last edited by mRgOBLIN; 03-07-2010 at 06:13 AM.
 
Old 03-07-2010, 10:14 AM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
@mutexe: Check out Dyndns as bgeddy mentioned and use inadyn to keep your dns record updated automatically, even if it changes while you're not at home.
 
Old 03-07-2010, 11:33 AM   #5
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
1. Not sure if this will be an option from a windows machine or not, but I use sshfs to transfer files via ssh. It connects a mountpoint (a directory) you specify to your home directory on the remote machine. So when you "ls" the directory on the local machine, you'll see all your files on the remote machine. It's very handy
 
Old 03-07-2010, 11:49 AM   #6
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
And there is always the option to use cygwin on windows, so that you can use the normal ssh & scp commands.
 
Old 03-07-2010, 12:13 PM   #7
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Original Poster
Rep: Reputation: 32
Thanks all. You've given a lot to look up and learn.

Thanks again,

Tom
 
Old 03-07-2010, 03:16 PM   #8
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Original Poster
Rep: Reputation: 32
Hi again,
Got me a DNS host from that site, but when I type 'ssh myHostName.HomeLinux.com' in putty it dont do anything, just seems to hang.
I've looked at the FAQs on dynDNS.com and cant see if i have to configure it some more?
Any ideas?

Cheers again,

Tom
 
Old 03-07-2010, 03:34 PM   #9
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Did you set your IP address for that domain on the dynDNS site?

If you do a "dig myHostName.HomeLinux.com", do you get the right IP address?

Setting the IP address for your domain can be done automatically with the inadyn client as well...
If you don't want to compile inadyn, you can grab it from my site (see link in my signature).
 
Old 03-07-2010, 03:44 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
1. PuTTY is a remote access client only. You can also down load from the same site as PuTTY command line programs pscp or psftp.

2. This might help http://www.securityfocus.com/infocus/1806

3. If you ping myHostName.HomeLinux.com (use your real URL) you should see your IP address. If using a router it will be your WAN IP address. Is the dynDNS client running? If using a router did you configure it to forward IP address and you also configure your linux box with a static IP address?

Last edited by michaelk; 03-07-2010 at 03:47 PM.
 
Old 03-07-2010, 03:57 PM   #11
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Original Poster
Rep: Reputation: 32
thanks again for the help

Code:
bash-3.1$ dig myname.homelinux.com

; <<>> DiG 9.4.3-P4 <<>> myname.homelinux.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12367
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;myname.homelinux.com.       IN      A

;; ANSWER SECTION:
myname.homelinux.com. 60     IN      A       <my eternal IP is here>

;; Query time: 58 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Sun Mar  7 21:44:39 2010
;; MSG SIZE  rcvd: 57
Does that means it's working ok? I dont have much networking knowledge i'm afraid.

Should anything happen if i do a 'http://myname.homelinux.com' in a browser??

CHeers,

Tom

PS I was gonna look at inadyn once i'd got the DNS working

Last edited by mutexe; 03-07-2010 at 04:03 PM. Reason: http spelling error
 
Old 03-07-2010, 04:10 PM   #12
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Quote:
Originally Posted by mutexe View Post
Does that means it's working ok? I dont have much networking knowledge i'm afraid.
If it gives the correct IP address, yes

Quote:
Originally Posted by mutexe View Post
Should anything happen if i do a 'http://myname.homelinux.com' in a browser??
Only if you have httpd running on your server, and if your ISP does not block access to port 80 (mine does...)
 
Old 03-07-2010, 04:29 PM   #13
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Original Poster
Rep: Reputation: 32
yep it gives the correct IP

But
Code:
ssh tom@myName.homelinux.com
still does not work (just hangs).

I used https://www.dyndns.com/support/tools/openport.html with my IP and port 80 and got this:
Quote:
An attempted connection to <my ip address>:80 was refused. This typically indicates that there are no services available on that port, but that it is NOT being blocked by a firewall or your ISP.


Tom
 
Old 03-07-2010, 04:32 PM   #14
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
OK, you can start httpd with "sh /etc/rc.d/rc.httpd start", try again, and stop it afterwards with "sh /etc/rc.d/rc.httpd stop"

It should give a simple page with something like "It works!"
 
Old 03-07-2010, 04:43 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Here is another check you can perform.

telnet myName.homelinux.com 22

You should see a response similar to the following.
Trying xxx.xxx.xxx.xxx...
Connected to myName.homelinux.com
Escape character is '^]'.
SSH-2.0-OpenSSH_4.7

Last edited by michaelk; 03-07-2010 at 05:08 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
simple questions looking for a simple command s3ns4i Linux - Newbie 4 10-21-2008 12:55 PM
Three simple questions progame64 Linux - Newbie 15 04-04-2008 07:04 PM
Simple ssh help. Optimistic Linux - Networking 4 02-18-2005 01:20 AM
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 12:40 PM
Simple Questions muzicman82 Linux - General 4 01-15-2004 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration