The Computer Oracle

Can I make scp ask before overwriting an existing file?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT


Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Meditation

--

Chapters
00:00 Can I Make Scp Ask Before Overwriting An Existing File?
00:28 Accepted Answer Score 9
00:51 Thank you

--

Full question
https://superuser.com/questions/131801/c...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#scp

#avk47



ACCEPTED ANSWER

Score 9


No. It was intended to operate as a direct, but secure, replacement for rcp and the -i option wasn't something rcp had, so it isn't found in vanilla scp.

You might prefer to use the Secure File Transfer Protocol (SFTP) via the sftp command instead. It supersedes scp and offers an interactive mode (though not quite what you're asking for with the -i request).