Getting access to linux server
Getting access to linux server
Hello there
The situation is as follows:
Locally I have a CENTOS 7 running on my virtual box.
Online there is another CENTOS 7 operating system running.
I would like to have access to the online version via my local installation.
The reason is simple:
I created some files on the online version and I would like to have them locally too.
As the GUI does not start when typing "startx" I cannot send the files via mail.
That's why I want to copy the files after the login.
Or is there an easier way to solve the problem?
Maybe sending an attachment via mail?
Will you help me to configure a possibility of sending emails with attachments?
Thank you in advance and kind regards,
Roobiks
The situation is as follows:
Locally I have a CENTOS 7 running on my virtual box.
Online there is another CENTOS 7 operating system running.
I would like to have access to the online version via my local installation.
The reason is simple:
I created some files on the online version and I would like to have them locally too.
As the GUI does not start when typing "startx" I cannot send the files via mail.
That's why I want to copy the files after the login.
Or is there an easier way to solve the problem?
Maybe sending an attachment via mail?
Will you help me to configure a possibility of sending emails with attachments?
Thank you in advance and kind regards,
Roobiks
Last edited by Roobiks on 2015/11/14 15:13:37, edited 1 time in total.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Getting access to linux server
Used scp.
Re: Getting access to linux server
I come into permission issues with scp, permission is denied.
Some public and private key are making my life difficult
Some public and private key are making my life difficult
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Getting access to linux server
Then how are you accessing the remote site?
See https://wiki.centos.org/HowTos/Network/SecuringSSH
See https://wiki.centos.org/HowTos/Network/SecuringSSH
Re: Getting access to linux server
I use Putty to open the linux terminal.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Getting access to linux server
And putty uses ssh.
Re: Getting access to linux server
Okay I created a keypair locally and copied the content of the .pub key into the authorized_keys on the server.
I trief to copy a file via scp from the server to the local machine.
Unfortunately permission is denied.
I trief to copy a file via scp from the server to the local machine.
Unfortunately permission is denied.
Re: Getting access to linux server
Probably an SELinux problem (depends on how the file where copied/moved).
ls -lhZ ~/.ssh command will tell you what context the files (and directory are). If they're not ssh_home_t type, then use restorecon on that directory.
But this is really a guess...
ls -lhZ ~/.ssh command will tell you what context the files (and directory are). If they're not ssh_home_t type, then use restorecon on that directory.
But this is really a guess...
Re: Getting access to linux server
Where was the connection started from? What you need to do (after performing the check aks suggested) is connect from the local machine to the server and download (pull) the files.Roobiks wrote:Okay I created a keypair locally and copied the content of the .pub key into the authorized_keys on the server.
I trief to copy a file via scp from the server to the local machine.
Unfortunately permission is denied.
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.