LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2010, 06:57 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
is there an ssh file tarnsfer client in linux


i have ubuntu running on my machine and a class i am taking requires me to turn in projects via ssh and i don't want to go through the process of command lines and stuff is there a ssh file transfer client that has a gui and can be easily installed and executed
 
Old 09-13-2010, 07:09 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Nautilus can do sftp://
 
Old 09-13-2010, 07:17 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
cool can you give me an example on how to access the directory i intend to transfer files to

and do i have to install ossh first or is it not necessary
 
Old 09-13-2010, 10:23 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,799
Blog Entries: 27

Rep: Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639
What you want is the scp command.

You can transfer individual files, you can specify the destination target directory, you can even transfer entire directories.
 
Old 09-13-2010, 11:12 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,428

Rep: Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999
http://wnylug.org/wp-content/uploads...buntu_9_04.pdf

Or as above.
make sure you have a ssh client
open Nautilus
in location type: ssh://user@iport
when asked enter password

Last edited by jefro; 09-13-2010 at 11:14 PM.
 
Old 09-14-2010, 05:04 PM   #6
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
this server is on port 22 how do i ensure that thats what its trying to connect through

plus whenever i use the command line like this
Code:
user@computer:~$ ssh username@hostname
then it gives me the message
Code:
ssh_exchange_identification: Connection closed by remote host
when i try doing this in putty at the school (putty is the program i use when the computer i get to doesn't have the windows ssh files transfer client installed) and it works with my email address and everything, the username is right and so is the password i just want to get it to work at my house (i know it works outside the lan many students have pulled it off numerous times)
 
Old 09-14-2010, 09:54 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,799
Blog Entries: 27

Rep: Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639
I think your syntax needs improvement. What always worked for me was

Code:
ssh [address] -l [username]
Example:

For the local network:
Code:
ssh xxx.xxx.xxx.xxx -l root
or

Over the internet:
Code:
ssh [someaddress] -l [username]
The user name must be one with a local logon to the remote host.

scp is little different. It's been a while since I've used it, but I think it's

Code:
scp [file] [username]@[remote host]:[destination path]
Code:
scp somefile root@somewhereorother:/somepath
More on scp.

If you are trying to connect from a remote location to your home network, port 22 must be open in your outward-facing router, you must have a public internet address for your router (no-ip dot com or dyndns are both popular), and port forwarding to the host computer for port 22 must be enabled in your router. Once you are in the host computer on your local network, you can then access the other ssh-enabled computers in your home network using ssh from the outward-facing host.
 
Old 09-14-2010, 10:49 PM   #8
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
i just did the one you suggested when the server is over the internet and i still got the same result
Code:
ssh_exchange_identification: Connection closed by remote host
i also tried to do it on a machine that had an account profile on it that resembles the profile on the ssh server i use to access it and i still got the connection closed by remote host reply what is going on here did i forget to do something here
Code:
#~ ssh <server name> -l <username>
i really need to turn in my work
(all this ssh stuff doesn't work well in windows either is this because i'm outside of the lan that the computers at school are)
 
Old 09-14-2010, 11:04 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,034

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Quote:
Originally Posted by baronobeefdip View Post
this server is on port 22 how do i ensure that thats what its trying to connect through
You can ensure it is using port 22 with the -p flag:
Code:
ssh -p 22 username@hostname
However, I'd be amazed if your ssh client wasn't using port 22 by default.

Quote:
plus whenever i use the command line like this
Code:
user@computer:~$ ssh username@hostname
then it gives me the message
Code:
ssh_exchange_identification: Connection closed by remote host
Please run ssh with verbose output so that we can get more information
Code:
ssh -vvv username@hostname
Evo2.
 
Old 09-15-2010, 02:02 PM   #10
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
well i got it working at school but i have no idea on how to transfer the files from my harddrive to the directories on the server, also want to know how to get it working through a gui which would help alot

i think its not working at my house because there are too many know hosts that are confusing my system, how do i clear the known hosts on the system
 
Old 09-15-2010, 03:14 PM   #11
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,905
Blog Entries: 20

Rep: Reputation: 126Reputation: 126
Quote:
Originally Posted by baronobeefdip View Post
well i got it working at school but i have no idea on how to transfer the files from my harddrive to the directories on the server, also want to know how to get it working through a gui which would help alot
command line:
Code:
rsync -aPv /source/directory/. user@desthost:/dest/directory
gui ... look for an rsync front end tool.

Quote:
Originally Posted by baronobeefdip View Post
i think its not working at my house because there are too many know hosts that are confusing my system, how do i clear the known hosts on the system
Code:
rm ~/.ssh/known_hosts
 
Old 09-15-2010, 06:41 PM   #12
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
how do i copy an entire folder instead of just a file

i am still getting my connections closed by the remote host i ran it with verbose and this is what came up
Code:
baronobeefdip@baronobeefdip-desktop:~$ ssh -v alopez44@penguin.tamucc.edu
OpenSSH_5.6p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to penguin.tamucc.edu [165.95.5.15] port 22.
debug1: Connection established.
debug1: identity file /home/baronobeefdip/.ssh/id_rsa type -1
debug1: identity file /home/baronobeefdip/.ssh/id_rsa-cert type -1
debug1: identity file /home/baronobeefdip/.ssh/id_dsa type -1
debug1: identity file /home/baronobeefdip/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
will this help in giving me a better explanation of what is going here because it is really frustrating at this point

Last edited by baronobeefdip; 09-15-2010 at 08:14 PM.
 
Old 09-15-2010, 10:33 PM   #13
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,799
Blog Entries: 27

Rep: Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639Reputation: 4639
Is there a firewall on the host computer?

A closed firewall will give you a "connection closed" or "connection refused."

If there is a firewall, incoming ports are likely closed by default.
 
Old 09-15-2010, 10:58 PM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,034

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Hi,

I was able to ssh there with no problem (up till needing a password).
Can you please try again after moving your .ssh directory out of the way?
EG.
Code:
mv ~/.ssh ~/.ssh.back
ssh -v alopez44@penguin.tamucc.edu
Evo2.
 
Old 09-16-2010, 12:08 AM   #15
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
just did the commands provided by evo2 and i got this
Code:
baronobeefdip@baronobeefdip-desktop:~$ ssh -v alopez44@penguin.tamucc.edu
OpenSSH_5.6p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to penguin.tamucc.edu [165.95.5.15] port 22.
debug1: Connection established.
debug1: identity file /home/baronobeefdip/.ssh/id_rsa type -1
debug1: identity file /home/baronobeefdip/.ssh/id_rsa-cert type -1
debug1: identity file /home/baronobeefdip/.ssh/id_dsa type -1
debug1: identity file /home/baronobeefdip/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
what came up when you used this in verbose evo2
it connects to the host but what the heck is an identity file is that the problem

how do i clear all of the host entries and stuff like to start fresh and try all f this again

is there any chance that it might be the router or does that have nothing to do with it

i am sure there is a firewall but since i have a username to enter the host i think that i will be able to go through the firewall as long as i provide a password

Code:
debug1: Reading configuration data /usr/local/etc/ssh_config
does this mean that i need to change something in the ssh_config file

Last edited by baronobeefdip; 09-16-2010 at 12:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Graphic SSH Client in Linux chinaundead Linux - Newbie 23 01-30-2012 03:27 AM
SSH Secure File Transfer Client in rbash lth0721 Linux - Software 2 03-05-2009 05:09 AM
kerberized ssh window client can't authenticate to kerberized Linux SSH server celeron Linux - Software 0 04-11-2007 06:36 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration