Page 1 of 1

Getting access to linux server

Posted: 2015/11/14 14:34:29
by Roobiks
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, :D
Roobiks

Re: Getting access to linux server

Posted: 2015/11/14 15:12:21
by gerald_clark
Used scp.

Re: Getting access to linux server

Posted: 2015/11/14 15:15:27
by Roobiks
I come into permission issues with scp, permission is denied.
Some public and private key are making my life difficult

Re: Getting access to linux server

Posted: 2015/11/14 16:49:15
by gerald_clark
Then how are you accessing the remote site?
See https://wiki.centos.org/HowTos/Network/SecuringSSH

Re: Getting access to linux server

Posted: 2015/11/14 17:39:51
by Roobiks
I use Putty to open the linux terminal.

Re: Getting access to linux server

Posted: 2015/11/14 18:14:05
by gerald_clark
And putty uses ssh.

Re: Getting access to linux server

Posted: 2015/11/15 11:40:49
by Roobiks
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.

Re: Getting access to linux server

Posted: 2015/11/16 19:00:06
by aks
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...

Re: Getting access to linux server

Posted: 2015/11/17 08:10:42
by giulix63
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.
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.