• SSH Help - Copying, any alternatives?
    20 replies, posted
Hi huys, I currently have Ubuntu installed on a Virtual Machine and everything wors perfect so far. Now I need to get some data from my University account. I can login via the terminal ssh but that is a pain in the ass. Also I have no clue how to copy things back and forth. So my question, is there any program for Ubuntu like the Ssh Shell for Windows that lets me copy stuff via a graphical interface? Or at least some tips for using the normal ssh? As soon as I am in the SSh, the cp is somehow not able to copy stuff into my local Linux PC. So when I am in a directory I want some stuff from I do cp testprog.f90 home/desktop However, that doesn't work :(
I would install an FTP server. Is there any reason why you need to stick to SSH for the copying?
It's the only way to connect to our user accounts at university.
Use vsftpd. Makes life easier.
Ok, have a look at sftp and scp. They use the ssh protocol to copy files. Sadly, its difficult, if not impossible to copy files over a standard ssh session.
I use sftp. You use cd to change directory to the files you want. Then type "get file.txt ." To upload use "put . /path/to/file.txt"
You can use the "scp" command to copy files over SSH.
Nautilus, the GNOME file manager, can do graphical SFTP. Just type the address in the location bar, e.g. sftp://example.com/home/killuah You can navigate in and out of directories and drag files in and out just like on the local filesystem.
You should definitely use sftp. Zero setup required, even the command line tool is really easy to use.
[QUOTE=DrTaxi;17631492]You should definitely use sftp. Zero setup required, even the command line tool is really easy to use.[/QUOTE] I think you mean scp.
[QUOTE=Wyzard;17630456]Nautilus, the GNOME file manager, can do graphical SFTP. Just type the address in the location bar, e.g. sftp://example.com/home/killuah You can navigate in and out of directories and drag files in and out just like on the local filesystem.[/QUOTE] Dang I forgot about that. It's really nice because sftp doesn't have "tab completion", and some of my filenames are a mess. I haven't been able to figure out how to sftp with Dolphin though. Maybe Konqueror can do it. [editline]12:49PM[/editline] [QUOTE=faze;17632877]I think you mean scp.[/QUOTE] He means sftp. Type it into your terminal.
scp works really well. Only additional option you need to know is "scp -r" for copying whole directories.
[QUOTE=Awesomecaek;17637080]scp works really well. Only additional option you need to know is "scp -r" for copying whole directories.[/QUOTE] Oh so with scp you do something like: [code] $ scp -r user@host/home/user/my_stuff/ [/code] Sftp is like this: [code] $ sftp user@host > cd /home/user/ > get -r my_stuff/ > quit [/code]
[QUOTE=PvtCupcakes;17637214]Oh so with scp you do something like: [code] $ scp -r user@host/home/user/my_stuff/ [/code] Sftp is like this: [code] $ sftp user@host > cd /home/user/ > get -r my_stuff/ > quit [/code][/QUOTE] Yeah, I don't really it worse in any way. I somehow like the single command way more, and it does not matter too much anyway.
There's also rsync if you want more power. I use that to keep my production website and local version synced. By far the easiest way is sftp in nautilus, I presume KDE's file browser can do the same thing.
Google SSHFs... you can treat SSH connections as a generic filesystem using it. I use it for web-dev work on my remote server, and it's not too slow. I think it's in the Ubuntu repos too. aptitude search sshfs, it should come up. Then you've got to do a bit of one-time editing config files to get it to connect to the right servers and mount them as the right local directories, but after that it's plain sailing.
Ugh, I'm having the same problem, also I don't get the user@host thing, what would I put there? I'm connected to my server at home (4 hours away atm). I can't forward ports on either end, I have the SSH port forwarded at the server, and a few more for the game I'm hosting. I don't get how I can get the file from the server to my PC. [editline]01:54PM[/editline] Holy crap, winscp is awesome. Get it.
user@host If I had the server in LAN with me, I'd probably use something like root@192.168.0.100 First is the username on the server and then is the server's address.
[QUOTE=UNIX_nikomo;17729639]root@192.168.0.100[/QUOTE] Huge, gaping security hole. sshd_config should have this: [code]PermitRootLogin no[/code]
[QUOTE=PvtCupcakes;17730228]Huge, gaping security hole. sshd_config should have this: [code]PermitRootLogin no[/code][/QUOTE] what if i want to copy my /
[QUOTE=UNIX_nikomo;17738712]what if i want to copy my /[/QUOTE] su(do) :downs: Edit: Wait, if that's actually possible with SFTP Edit2: Possible, see [url]http://winscp.net/eng/docs/faq_su[/url]
Sorry, you need to Log In to post a reply to this thread.