Тёмный

How to Transfer Files Using SSH 

Подписаться
Просмотров 131 тыс.
% 1 890

In this video, I go over how to transfer files using ssh. You will be able to SFTP and SCP for this and I show how to do this in both Windows and Linux. I also wrote up a definitive guide on how to setup, secure, configure, use, and transfer files using SSH @ www.christitus.com/ssh-guide/
My Recommended Content Delivery Network CDN77: links.christitus.com/cdn77
Timestamps:
1:25 Linux
8:15 Windows .
►► Digital Downloads ➜ www.cttstore.com
►► Reddit ➜ www.reddit.com/r/ChrisTitusTech/
►► Titus Tech Talk ➜ ru-vid.com
►► Twitch ➜ www.twitch.tv/christitustech

Наука

Опубликовано:

 

20 сен 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 131   
@Master-yn6ie
@Master-yn6ie 5 лет назад
I wonder, does Windows 10 file explorer support sftp
@ChrisTitusTech
@ChrisTitusTech 5 лет назад
Not Natively, however I always say anything can be accomplished on a computer. You could install an addon to add this functionality by installing a product called Swish (swish-sftp.org/). Enjoy!
@GrowMTBF
@GrowMTBF 5 лет назад
Win 10 Pro has sftp command in the powershell. Needing a GUI is overkill, IMHO.
@realJohnJohn
@realJohnJohn 5 лет назад
I used putty for windows lol
@Mokaphyyr
@Mokaphyyr 5 лет назад
This is yet another video solving a current problem of mine or others i interact with. One of my instructors has the class connect SSH into a server. There we build a java program to solve discrete structure assignments. Insted of using nano to build programs from scratch, i would rather use an IME like DrJava or Sublime. Getting a file across SSH led me to SCP. I like your instructions here, and will probably pass this video among my piers.
@danw1955
@danw1955 5 лет назад
I use WinSCP and puTTY here on a regular basis for server maintenance from a Win7 box. Simple and effective! Of course Linux has all this built-in, like you mentioned, so easy to navigate, and generally much quicker to execute right from the file manager. Nice tutorial.👍
@padraigr9305
@padraigr9305 5 лет назад
Thanks Chris for this hands on video. Particularly like your OS and command line / GUI agnostic approach
@highflowhighflow9896
@highflowhighflow9896 5 лет назад
Many tnx for clear up those copy methodes , i use network shared directorys in Windows , once setup the permissions it just work as local internal drives , no logins, no commands just all with explorer. Love your tshirt!
@kevinklement2621
@kevinklement2621 5 лет назад
Maybe mention rsync over ssh? I almost always use rsync rather than scp, to avoid recopying files that are already the same between the two machines. The syntax is basically the same otherwise if you use -av or -avP flags.
@DaveSomething
@DaveSomething 5 лет назад
rsync -r -a -v -e "ssh -p2222" ~/. dave@what.host.he.uses:~/CrapFromWork/ works pretty good for me, after you do the "ssh-keygen" and then "ssh-copy-id dave@what.host.he.uses -p 2222" so you don't have to login with your password constantly. (-p 2222 is the port #, please tell me you're not using 22 on WAN)
@bertnijhof5413
@bertnijhof5413 5 лет назад
ZFS send/ssh/receive is the best. It only send the modified part of each file. Great especially if you backup huge files (10-50 GB) like those of virtual machines. If the files are compressed, their changes will be send compressed too.
@DaveSomething
@DaveSomething 5 лет назад
@@bertnijhof5413 thanks!
@listen774
@listen774 4 года назад
Agree I use rsync too
@jameschandler5
@jameschandler5 5 лет назад
You could make a few updates: Linux: rsync, sshfs Windows 10 1809+: openssh command line SSH, scp an sftp is included in the OS now... No need for Putty/WinSCP if not desired
@katrinabryce
@katrinabryce 5 лет назад
In Windows, if you have a folder open, you can go to File | Open Windows Powershell, and it will open a powershell at that particular folder location, which saves you from having to cd to it.
@Bleeeeeeeeeeeeeaaaah
@Bleeeeeeeeeeeeeaaaah 5 месяцев назад
Wow, I feel like I was cheated before, no one told me it's that easy. No more need for usb-sticks, forwarding files in messengers/discord. I finally have control over my files regardless of the machine. Thank you!
@monopolymoney2703
@monopolymoney2703 Год назад
Incredibly helpful video. I bought a mac pro from 2006, loaded debian bullseye on it, and use it as an ftp server now.
@yvrelna
@yvrelna 5 лет назад
The SFTP protocol has nothing to do with the FTP protocol. They're two completely different protocol that just happens to share very similar name. SFTP is not just an SSH-wrapped version of FTP. This is different from FTPS, which actually is a TLS-wrapped version of FTP.
@Phydoux2112
@Phydoux2112 4 года назад
Never fails. Every time I hear someone talking about something in Windows, eventually I'm going to hear the word "sucks". But the Linux stuff is exactly what I needed. Now I havd 2 ways to transfer files. Thanks!
@somsuvradhar9322
@somsuvradhar9322 5 лет назад
Very useful video. Chris could you do a video on linux file system. Its very confusing for a new user specially with all the bins and etcs, and not a lot of youtubers have done a good job explaining them, as most have just spelt out their names. A detailed informative video from you would be fantastic
@SMJSmoK
@SMJSmoK 5 лет назад
Tutorialinux has a great video on that
@caseykreicar
@caseykreicar 3 года назад
you can't copy a file from the user logging into the remote server using scp? I'm trying to copy a file from the computer using ssh to the remote computer. I just get connection refused. ssh works. the example is copying a file from the remote server but the opposite can't be done?
@philswift7151
@philswift7151 2 года назад
2:20 this was all I needed, thanks for the great help
@0cgw
@0cgw 5 лет назад
Another way to transfer files between computers (ones for which you have root access) is to nfs mount the home directory of each machine on the other (set it up using exportfs). You can also export other (e.g., USB) discs attached to each machine, so that you need not care what's attached to what. Then copying is seemless: cp files/* /mountpt/remotemachinespath For dropbox and googledrive (I know Chris isn't keen on these, but google has granted members of my university unlimited cloud storage --actually 1.0P storage according to mount) you can use rclone to mount your cloud services as directories in the same way. So copying to the googledrive is just cp file /Gdrive/somewhere/ Though you may need to go to a browser to control sharing options.
@wesleymercer4536
@wesleymercer4536 5 лет назад
"I don't like them, mainly because they suck." You got me rolling over here dude.
@matthewlathum9312
@matthewlathum9312 2 года назад
Dear Chris, I moved to Zorin 16 pro after whole my life in windows, but now suddenly all my text files have strange characters inside it, most is correct. What to do ? PLEASE!
@fuseteam
@fuseteam 5 лет назад
Tip: you can put the user name and ip in a ssh config file; that way you can ssh, scp, SFTP and sshfs into your remote via an alias Like ssh propc Or scp hello.txt propc:~
@muffiustv8280
@muffiustv8280 Год назад
for all these to work don't you have to place the public key from your source instance to the authorized_keys file in your destination server?
@williamevans6830
@williamevans6830 5 лет назад
Titus Tech is a boon to Linux and anyone with a bit of time and tenacity. Awesome stuff keep it going.
@stephenfienberg8765
@stephenfienberg8765 5 лет назад
I like to mount network files to /mnt through fstab. Once mounted you can just use your file explorer to copy to your heart's content. Otherwise if I want to explore other network locations, ssh to explore and scp to copy back to my machine.
@KyzerSusie
@KyzerSusie Год назад
Love this. I opened two file manager windows in Mint, input the sftp command into one of those windows, and was able to transfer files to my hearts content. However, once I finished and closed both windows, the sftp connection remained, and now shows the remote system under Network whenever I open a new file manager window. While that's very convenient, how do I turn off the sftp connection if I want to, using the file manager, or do I have to muck around in the terminal?
@TheMack
@TheMack 5 лет назад
Really cool! I didn't know it was possible to use SFTP in the Linux file manager, works fine in Thunar. I have connected SMB-shares from a Synology NAS, are there any difference in using SFTP instead of SMB, or is it just speed? Thanks!
@TheMack
@TheMack 5 лет назад
@@kenklak Thanks for the reply, I already have it enabled and it works nicely to connect with both SSH in terminal and with SFTP in Thunar. My question was whether there are any advantages to using SFTP instead of SMB in Thunar when connecting to network shares? SMB is quite a clunky protocol so... :)
@TheMack
@TheMack 5 лет назад
@@kenklak Thanks, that's good info! I would like persistence with mount points so that rules out SFTP I guess, at least in a LAN. Now all I need is a nice tutorial by Chris how to set up SMB mount points in fstab :)
@greatwolf.
@greatwolf. Год назад
Doesn't Win10 and later have ssh and scp already included? Doing a `where ssh` and `where scp` from my cmd.exe terminal shows 'C:\Windows\System32\OpenSSH' as the location for both. Assuming other Win10 installs are similar why not just use that instead of downloading winscp and putty etc? Btw found your video because I was looking for a way to transfer files to my tomato router over ssh.
@charlesarnold4963
@charlesarnold4963 4 года назад
Many thanks, especially for bringing WinSCP to my attention. I need to transfer one file to a Raspberry and it worked so easily. Command line was throwing up an error that it could not resolve the host filename!
@HtopSkills
@HtopSkills 5 лет назад
Good information Background and text almost the same color is not a good because it's difficult to read
@benriful
@benriful 5 лет назад
Unfortunately those are the standard PowerShell colours. Thank someone at Microsoft for this. Though you can change it "fortunately". I just think Chris isn't so into Windows anymore that he does the customizations to the same extent as he does his Linux machines. In power shell some useful writeup on changing colours: www.pdq.com/blog/change-powershell-colors/
@enermaxstephens1051
@enermaxstephens1051 3 года назад
Yes but how do you do this using GUI only? Say for example, you just want to use your wireless mouse, cause you're using an HTPC. But you need to move some files around.
@MStrong95
@MStrong95 5 лет назад
Chris says that he will talk about doing SSH file transfer with Windows and Linux, but am I to assume that Mac OS is basically the same as Linux?
@oldbloke135
@oldbloke135 3 года назад
I like WinSCP, that works great for the trivial stuff I want to do. I'm not sure Putty is needed. I ran SSH from a Win 10 command window with no problems and didn't need the IP address either, just used the names from my Linux Mint machine.
@GradyBroyles
@GradyBroyles 5 лет назад
Great video! I notice you typing "clear" to clear the terminal. {ctrl]+l (lower-case L) is the keyboard shortcut to do that.
@listen774
@listen774 4 года назад
kool
@peterjansen4826
@peterjansen4826 5 лет назад
Chris, which Telltale and WB games did you play? Do you really use a 4-character password for your server (maybe you don't care much because it is just for gaming and not privacy-sensitive) or did you briefly change it to 4 characters to not give away how many you use? :P
@ChrisTitusTech
@ChrisTitusTech 5 лет назад
Yes it is 4 characters and could be hacked in about 2 shakes of a lambs tail. However, this particular one isn't exposed to the outside world and used mainly for testing, hence the short password.
@djwolf37
@djwolf37 5 лет назад
Could you go over compressing a file and then transferring via ssh on Linux? Trying to backup my Plex db folder (freenas) from my server to a local computer (Ubuntu)
@karmasabitch6199
@karmasabitch6199 5 лет назад
Just right click your plex db folder and you should see "Compress..." almost at the bottom of the menu.
@lesliesavege1206
@lesliesavege1206 4 года назад
Why do you need to mess with putty, when there is a terminal in Windoze? I don''t have a Windoze machine open right now, but the terminal, not CMD, will do ssh just fine.
@muhammadfaroby1991
@muhammadfaroby1991 2 года назад
thanks sir, but how i use sftp transfer file in my server to ip target not local file ?
@ellysantersinuraya1932
@ellysantersinuraya1932 3 года назад
can you explain why ssh won't work delete file on remote mikrotik router
@anilmallidi5117
@anilmallidi5117 4 года назад
Hai, I want to transfer file from my ubuntu 20.04 to windows10 using scp. Is it possible
@shuxhop
@shuxhop Год назад
is it possible to transfer large files as an attachment to an email address?
@aitchpea6011
@aitchpea6011 5 лет назад
So, for this to work, do you need only the ssh server installed on the remote computer, or is there some other requirement. Also, can I do it in Thunar, my file browser of choice?
@aitchpea6011
@aitchpea6011 5 лет назад
@@kenklak Cool, thanks. Yup, I'm cool with SSH, just never tried copying files that way. I mostly just use samba shares on my home network.
@abeibrahim5846
@abeibrahim5846 5 лет назад
Hi Chris, I am a Windows user and my needs are simple; What is the fastest way to copy files from one drive to another on the same computer? I also wonder if it will also work on my local network computers - I tried xCopy, and its new name tool and nothing is really that fast from a native copy. I have ASUS RamPage Extreme V, with Intel 8 core CPU, 32Ram and 256SSD; and I get when coping is 33MB/s Max; that's a joke... please help - I move video files all the time and they average of 15GB.
@gregg4
@gregg4 5 лет назад
Please tell me your actual password is not four characters long. People look up to you for sensible info about computers so your password is more like 20-30 characters long, it's more like a passphrase and it has numbers, special characters and other numbo jumbo in there, right?
@jihedbouchnak
@jihedbouchnak 3 года назад
thank keep us update with your tutorial good job
@ForrestRhoads
@ForrestRhoads 5 лет назад
Thank you, Chris. Good video. You are a good teacher. I've also found much utility in ssh and scp. I've also derived huge benefits from sshfs for mounting home file systems securely over the internet, with Mac (using FUSE), Windows (WinSSHFS) and Ubuntu. Perhaps sshfs would be an additional topic you could explore with your audience. Thanks again for the informative presentation. I've never tried sftp with a file manager before, and it seems a handy trick.
@PTReDaLeRtPT
@PTReDaLeRtPT 5 лет назад
How can I use SCP with a remote user that only has sudo privileges to copy a file owned by the user root?
@s9209122222
@s9209122222 5 лет назад
SFTP and NFS, which one is better?
@farahmohumad5355
@farahmohumad5355 3 года назад
this video make my day. thanks man
@praetorxyn
@praetorxyn 5 лет назад
On my Mac sshfs just broke at some point. I used to use it to upload shell scripts and crontab to my DD-WRT router, but then it stopped working and I was never able to fix it. I'm guessing it's just a Mac thing, and is one of many reasons I'll never buy an Apple product. I only tried Mac in the first place because I had HiDPI problems with Linux, but I've come to think anything higher than 1080p on a laptop is dumb.
@ForrestRhoads
@ForrestRhoads 5 лет назад
Sshfs with FUSE had worked fine on my Macs for many years. I'm not sure you should be looking at Mac OSX as the problem area.
@ForrestRhoads
@ForrestRhoads 5 лет назад
Has
@praetorxyn
@praetorxyn 5 лет назад
@@ForrestRhoads It worked fine for months, then one day just stopped. I can still ssh into it, but not sshfs mount. It just immediately says the server closed the connection. Bit of a moot point now as I flashed the stock Netgear firmware back on there so I doubt it even supports ssh.
@ForrestRhoads
@ForrestRhoads 5 лет назад
I have an ASUS Rt-N66U (a few models old) running stock firmware, current version. No problems with anything, actually. I'm much more interested in Linux distros these days than Mac OSX, but I wouldn't want to leave the impression that sshfs is going to be a problem on Mac systems. Best of luck
@lvill3633
@lvill3633 5 лет назад
Do you have video for SSH/TLS tunneling for Linux? I am using HTTP Injector by Evozi for Android but I can't for Linux 😔 Thanks! ☺️
@peaceful4you408
@peaceful4you408 2 года назад
I hate anything dealing with a command line or Programming/coding like interface. I literally always use the GUI to carry out any task that I may need done. Much easier and much simpler. Makes your job way less complicated.
@AnzanHoshinRoshi
@AnzanHoshinRoshi 5 лет назад
Thank you, Chris.
@divyanshpandey8703
@divyanshpandey8703 5 лет назад
Sir can you also demonstrate how libvirt-php module can be used to help in starting kvm guest machine from webpages. By using centos7 and kvm. 😁
@kjvisual7
@kjvisual7 2 года назад
You are ultra helpful. Thanks.
@gwgux
@gwgux 5 лет назад
Another great video Chris! I recommend them to others who are struggling with this stuff. :) Have you covered VNC yet?
@ebiscaia
@ebiscaia 3 года назад
Is there a way to do it using CL in mRemoteng? Thanks
@Patrick_AUBRY
@Patrick_AUBRY 5 лет назад
So for OSX it's like Linux?
@adjusted-bunny
@adjusted-bunny 5 лет назад
I always use cp to transfer files.
5 лет назад
Hey Chris. Love your videos. Could you please explain Linux filesystem with some examples? It would SO useful to a lot of people! Thank you!
@xila8861
@xila8861 Год назад
yo, how to reverse chown username downloads permission?
@Innocentdarkness72
@Innocentdarkness72 5 лет назад
great video, have a nice weekend !!!
@amiguirigillo
@amiguirigillo 4 года назад
Thanks! your video help me a lot
@jimdeadlock
@jimdeadlock 5 лет назад
@Chris link to Arch desktop background image please?
@HimanshuSaini-tj7vx
@HimanshuSaini-tj7vx 4 года назад
What is password you entered here in winscp I am trying 3 days to find out this password I am not getting it. Can anyone tell me plzzz I will be very grateful to you.
@KHAOS_CODM
@KHAOS_CODM Месяц назад
Same problem
@WeedMIC
@WeedMIC 5 лет назад
Easier/better split screen in dolphon and use fish. Then drag and drop. Save it over on the left.
@magneat
@magneat 3 года назад
tab during ssh works bad not only in windows powershell, but in linux also
@NerdTouchingGrass
@NerdTouchingGrass Год назад
i get invalid reply revived when i try to move files
@fuseteam
@fuseteam 5 лет назад
Terminal tip: Ctrl-k cuts everything after the cursor Crtl-u cuts everything before the cursor Ctrl+w cuts one word before the cursor Ctrl+y pastes whatever you cut with the above #bashnavigation www.howtogeek.com/howto/ubuntu/keyboard-shortcuts-for-bash-command-shell-for-ubuntu-debian-suse-redhat-linux-etc/
@peterjansen4826
@peterjansen4826 5 лет назад
I would use the dual pane mode of the file-manager, it makes it a lot easier to move files. At the moment I mostly use Spacefm, it has 4 tabs/tiles. I would like 6 tabs/tiles but 4 helps a lot. :) I also like it that it remembers how you left it the last time (same layout, same paths open).
@listen774
@listen774 4 года назад
Great video
@subbaraju3660
@subbaraju3660 3 года назад
please make video on Copy files from code commit repositories to EC2 VM
@cs1999wongkit
@cs1999wongkit 4 года назад
Will you teach how to setp a ftp or scp server?
@annaburshtyko5714
@annaburshtyko5714 3 года назад
Thanks!
@gpet2184
@gpet2184 2 года назад
thank you so much
@gvikram18
@gvikram18 5 лет назад
I use mobaxterm instead of putty. Amps up my productivity
@phylwx
@phylwx 4 года назад
Chris, upload to LBRY, I would totally tip your content.
@ahuman6825
@ahuman6825 5 лет назад
So simple why did I struggle so much and give up and use filezilla? Untill now..
@viper92677
@viper92677 5 лет назад
You should do a how to on monkeysphere
@sarhtaq
@sarhtaq 5 лет назад
When ever I reinstall my Windows workstation, the two first tools usually installed are WinSCP and Putty.
@antonsurviyanto5896
@antonsurviyanto5896 5 лет назад
Thank You...
@GrowMTBF
@GrowMTBF 5 лет назад
"tidal-lee"? WTH? Do you mean "tilde"? Till-Duh
@MrHRScrc
@MrHRScrc 5 лет назад
If you want an English lesson you are in the wrong place, mate.
@GrowMTBF
@GrowMTBF 5 лет назад
@@MrHRScrc someone being self-educated is a poor excuse for illiteracy. And, I am not the one, needing lessons.
@MrHRScrc
@MrHRScrc 5 лет назад
@@GrowMTBF There is no relationship between self-educated and Illiterate, otherwise the person could not even read or write. (Illiterate is a person who cannot read or write). Each person's way of speaking is like the fingerprint you have on their fingers. With the people of England, which is where the native English language of this country comes from, you would have many problems. Just go to another state of America to discover that you will not understand many words, pronunciations, idioms, etc. The list is endless. That said, here I end with this topic, the language is very rich in variations and that is precisely the wonderful thing about the language. I think that what you do criticizing people, with trivial things, makes you more ignorant than you want to appear. There is something that society lost and is called . It is easy to say your own frustrations behind a keyboard, sadly that is today's society.
@GrowMTBF
@GrowMTBF 5 лет назад
@@MrHRScrc what is it you choose to argue about? Or do you just have a need to correct others?
@christopherjames9843
@christopherjames9843 5 лет назад
@@GrowMTBF wtf does being illiterate have to do with the pronunciation of words? I will tell you: NOTHING.
@Ranblv
@Ranblv 5 лет назад
midnight commander FTW
@moniqueparrish5752
@moniqueparrish5752 4 года назад
This was very confusing for me sorry. I know the ssh but this didn't help me.
@RaytheonNublinski
@RaytheonNublinski 3 года назад
Dang missed being the 69000 view by 4.
@raghu600
@raghu600 Год назад
He's using arch btw
@prateekbhardwaj9943
@prateekbhardwaj9943 3 года назад
green contrast text can hurt your eyes
@mithubopensourcelab482
@mithubopensourcelab482 5 лет назад
Your all video's are excellent. I have learned many new things from those video's. Looking forward to have a video on BackupPC [ backuppc.github.io/backuppc] on how to correctly set the server and how to add Windows as well as Linux Client. Its very tricky. My several attempts are failed to configure correctly. BackupPC. I plan to keep all the backups on Freenas. "BackupPC is a high-performance, enterprise-grade system for backing up Linux, Windows and macOS PCs and laptops to a server's disk. BackupPC is highly configurable and easy to install and maintain., No client-side software is needed." -- This is what site says hence looks very attractive proposition.
@kodeypatterson8973
@kodeypatterson8973 4 года назад
Windows Powershell also supports SCP! sry
@jeffherdzina6716
@jeffherdzina6716 5 лет назад
Windows. Why ?
@HenrydenHengst
@HenrydenHengst 5 лет назад
tilde = ~
@bahathir_
@bahathir_ 5 лет назад
Cryptic version to copy file using only ssh. cat foo | ssh user@remote 'cat > bar other version ssh user@remote 'tar cz directory' | tar x Use at your own risk. :)'
@dailymeow3283
@dailymeow3283 3 года назад
I'm fed up of the command line thing, it feels like we're still living in DOS age when there was even no windows OS
@xnonsuchx
@xnonsuchx 5 лет назад
I had to stop watching before he said "tidalee" again. ;-)
@adjusted-bunny
@adjusted-bunny 5 лет назад
First!
@steeltiger1465
@steeltiger1465 5 лет назад
19th
@sumudubaduwasam9542
@sumudubaduwasam9542 2 года назад
Putty is a trojan dont download
@worthawatch6981
@worthawatch6981 4 года назад
Is this to get into any computer? or does that other computer have to be set up as a server, whatever that means? ie with the ip, user and pass can you log into any computer?
@deadlinerhorus
@deadlinerhorus 2 года назад
Maybe we could mention "Solar-PuTTY" while trusting into SolarWinds Free Tool