Differences

This shows you the differences between the selected revisions of the page.

2025-01-28 2026-03-25
link correction (martin) How to access server folders if initially not logged as root through WinSCP (195.225.58.253)
Line 15: Line 15:
Once logged in, configure your server to accept your public key. That varies with %%SSH%% server software being used. The most common %%SSH%% server is OpenSSH. Once logged in, configure your server to accept your public key. That varies with %%SSH%% server software being used. The most common %%SSH%% server is OpenSSH.
 +
 +You can remotely configure the server (to accept public key use) also using another program (Command Prompt) if WinSCP doesn't allow you to upload / modify / create files (for example when you logged as 'admin' and in the right side window of WinSCP you see 'root' as files owner - therefore WinSCP is working now just in read-only mode). Open a Command Prompt console, write 'ssh username@IP' (writing real IP with numbers syntax, like 124.12.0.15) click Enter, write the password, clic Enter. then again, write 'sudo -i' and click Enter, to create a root shell. From now on, you can list files and/or folders, using 'ls /' command, then navigate in server's folder structure, or create folders or files, and so on. That would be useful in order to create '.ssh' folder which is explained further. (In the end, after you finish working in the shell, write 'logout' and click Enter, to close the shell access, then again 'logout' and click Enter, to close the server connection.)
==== [[configure_openssh]] OpenSSH ==== ==== [[configure_openssh]] OpenSSH ====

Last modified: by 195.225.58.253