Tagged: ssh Toggle Comment Threads | Keyboard Shortcuts

  • Jay Versluis 8:05 am on November 2, 2015 Permalink | Reply
    Tags: , ssh   

    Categories: Linux ( 101 )   

    How to disable SSH access from everywhere except for certain IPs in CentOS 7 

    Here’s how to do it:

    firewall-cmd --zone=internal --add-service=ssh --permanent
    firewall-cmd --zone=internal --add-source= --permanent
    firewall-cmd --zone=internal --add-source= --permanent
    firewall-cmd --zone=public --remove-service=ssh --permanent
    firewall-cmd --reload

    This declares an internal zone with two IPs (add as many or as few as you like) and subsequently removes the SSH service from the public zone altogether. As a result, any other IP gets a message such as “Connection refused” when trying to connect via SSH.

    The “–permanent” switch saves the changes. Remove it for testing or if you don’t want this change to be permanent.

    The last line reloads the current firewall rules (thanks, CertDepot).

  • Jay Versluis 4:07 pm on December 23, 2012 Permalink | Reply
    Tags: , , ssh,   

    Categories: How To ( 35 )   

    How to use Xcode with a remote Git server 

    Xcode_iconImagine you’ve created a project in Xcode with a local Git repository. Now you’d like to put this online so that others can collaborate with you. How do you do that?

    This has been puzzling me for a while, and there doesn’t seem to be a clear documentation on this subject – so I’ve decided to take some notes as I figured it out. Here are step by step instructions on how to make it work.

    All we need is a server running Git and SSH credentials to that server to get started.

    (More …)

    • Jaro 12:56 pm on April 2, 2013 Permalink | Reply

      But what if I dont wish to make a new bare repository. Instead I wish to use the local .git file that is here: /%PROJECT FOLDER%/.git ?

      • Jay Versluis 2:16 pm on April 2, 2013 Permalink | Reply

        Hi Jaro,

        In that case, just head over to the Xcode Repository browser (in the Organizer) and click the little plus icon on the bottom left. You can add a local repository there.

  • Jay Versluis 2:27 pm on December 23, 2012 Permalink | Reply
    Tags: , ssh   

    Categories: How To ( 35 ), Linux ( 101 )   

    How to install Git on CentOS 

    Git-Logo-2ColorGit is a superb version control system that’s tightly integrated into Apple’s Xcode. To collaborate with some coding buddies of mine we wanted to setup a central remote storage on my Plesk server so we could all contribute to the code.

    Since we did not want to share our code with the public we wanted to make it secure. So secure in fact that we could contribute from coffee shops around the world, hence we decided to use Git with SSH. This is probably the easiest and most straightforward way for read/write access to Git remotes: no daemon to setup, to Firewall to tweak – all we needed was a set of SSH credentials and a server running Git with a bit of space.

    (More …)

  • Jay Versluis 2:06 pm on December 23, 2012 Permalink | Reply
    Tags: ssh   

    Categories: Plesk ( 76 )   

    How to give your Plesk users SSH access 

    Plesk-LogoBy default SSH access is disabled for FTP and web users which is a very good thing. I’d recommend enabling this only if you know exactly who’s connecting to your server and why.

    In my case, I want to use my server to host Git repositories so I can collaborate with some trusted coding buddies of mine. Here’s how I did it – I’m using Plesk 11 for this demonstration:

    (More …)

    • Ramadhan sora 11:44 pm on January 17, 2013 Permalink | Reply

      Save to desktop

    • Steffen Hornung 8:34 am on December 2, 2013 Permalink | Reply

      And what if I want an additional user to enable sftp/ssh

      • Jay Versluis 8:44 am on December 2, 2013 Permalink | Reply

        Hi Steffen,

        Sadly that’s not possible, only the main subscription user is allowed SSH/SFTP access, additional web and FTP users on the same subscription are not. It would be a nice feature to have, not sure why Parallels have elected not to make it available.

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc