Getting access to linux server

Support for security such as Firewalls and securing linux
Post Reply
Roobiks
Posts: 22
Joined: 2015/10/25 16:27:50

Getting access to linux server

Post by Roobiks » 2015/11/14 14:34:29

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
Last edited by Roobiks on 2015/11/14 15:13:37, edited 1 time in total.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Getting access to linux server

Post by gerald_clark » 2015/11/14 15:12:21

Used scp.

Roobiks
Posts: 22
Joined: 2015/10/25 16:27:50

Re: Getting access to linux server

Post by Roobiks » 2015/11/14 15:15:27

I come into permission issues with scp, permission is denied.
Some public and private key are making my life difficult

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Getting access to linux server

Post by gerald_clark » 2015/11/14 16:49:15

Then how are you accessing the remote site?
See https://wiki.centos.org/HowTos/Network/SecuringSSH

Roobiks
Posts: 22
Joined: 2015/10/25 16:27:50

Re: Getting access to linux server

Post by Roobiks » 2015/11/14 17:39:51

I use Putty to open the linux terminal.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Getting access to linux server

Post by gerald_clark » 2015/11/14 18:14:05

And putty uses ssh.

Roobiks
Posts: 22
Joined: 2015/10/25 16:27:50

Re: Getting access to linux server

Post by Roobiks » 2015/11/15 11:40:49

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.

aks
Posts: 2859
Joined: 2014/09/20 11:22:14

Re: Getting access to linux server

Post by aks » 2015/11/16 19:00:06

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...

giulix63
Posts: 1305
Joined: 2014/05/14 10:06:37
Location: GMT

Re: Getting access to linux server

Post by giulix63 » 2015/11/17 08:10:42

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.
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.

Post Reply

Return to “CentOS 7 - Security Support”