Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » [Ubuntu] How to setup SSH?

This thread is locked; no one can reply to it. rss feed Print
 1   2 
[Ubuntu] How to setup SSH?
Thomas Fjellstrom
Member #476
June 2000
avatar

No route to host means the ip you used was wrong.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Tobias Dammers
Member #2,604
August 2002
avatar

Also: /Projects? Why would you put your Projects directory directly under the filesystem root? Put it in ~/Projects, or /usr/local/share/Projects if you have to, but for all that's sacred, don't ever put anything directly under /. Really.

---
Me make music: Triofobie
---
"We need Tobias and his awesome trombone, too." - Johan Halmén

Specter Phoenix
Member #1,425
July 2001
avatar

The ip isn't wrong, did ifconfig on it to find it. Desktop was 192.168.1.103 and laptop was 192.168.1.104 (laptop usually jumps between 104 and 102) due to hibernating, but PC stays on 24/7 and hasn't changed in months.

Arthur Kalliokoski
Second in Command
February 2005
avatar

Can you ping it?

They all watch too much MSNBC... they get ideas.

Specter Phoenix
Member #1,425
July 2001
avatar

Can you ping it?

Are you serious? If I can connect with SSH and use filezilla after installing vsftpd, but only have issues with scp saying no route to host, then obviously ping would work otherwise the other two wouldn't work either.

Thomas Fjellstrom
Member #476
June 2000
avatar

scp uses the same ssh code as the ssh program. you had to have mistyped the ip.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Specter Phoenix
Member #1,425
July 2001
avatar

No, still having issues with it saying no route to host. Though, now it is only doing it for directories, but allowing me to copy individual files between the two.

One terminal:

Quote:

Last login: Mon Oct 8 15:10:12 2012 from clay-laptop.local
cptvile@clay-PC:~$ ls
7-uothzTaaQ.mp4 Dropbox pong Sublime Text 2
allegro-5.0 examples.desktop projects Templates
allegro-5.1.2 git Public test.db
android-sdk-linux incoming_fart.mp3 SDL-1.2.15 troll
artest kdenlive SDL-2.0.0-6302 tutor
artest.cpp libtheora-1.1.1 sdl3.cpp Ubuntu One
Charred Dirt lmms sdlsprite.cpp Videos
Desktop lua-5.2.0 SFML-1.6 workspace
dlg Music SFML-2.0-rc
Documents nmap-6.00 sqlite-autoconf-3071300
Downloads Pictures sshd_config

Second Terminal:

Quote:

equinox@Clay-Laptop:~$ scp cptvile@192.168.1.103:~/artest.cpp /home/equinox/
cptvile@192.168.1.103's password:
artest.cpp 100% 187 0.2KB/s 00:00

Third Terminal:

Quote:

equinox@Clay-Laptop:~$ scp -r cptvile@192.168.1.103:~/Projects /home/equinox/
ssh: connect to host 192.168.1.103 port 22: No route to host

Only thing I can think of is possibly router just acting up ???.

Thomas Fjellstrom
Member #476
June 2000
avatar

I can say its not scp's fault. Networking issue of some kind. Means that the kernel can't figure out how to send packets to that address (generally there's a "default" route setup to send all packets out a specific interface to a specific address for further "routing"). Check and see if your lan (not internet) connection is dropping right around the same time. Try running a ping at the same time (from the same computer, to the same computer) you're trying to use scp. See what ping says about it.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Specter Phoenix
Member #1,425
July 2001
avatar

Yeah, ping is timing out when I try to do directory transfers. Ran to the local Best Buy and got a router and seems to work. The other router was majorly old, had it before 2006 I believe.

 1   2 


Go to: