How do I get SSH & X Windows working?
A reader sent in an appeal for some Linux help this morning:
I have your book Teach Yourself Unix System Administration in 24 Hours, but still have some questions:
Great questions. Without knowing the exact flavor of Linux you're running, there's only so much help I can offer, but let's take a shot at this, shall we?
First off, you can definitely get X running via SSH. Have a look at the so-called tunnelling capabilities of the ssh command that you access by appending it to the usual ssh invocation. Here's what the man page says: "ssh (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine... X11 connections and arbitrary TCP/IP ports can also be forwarded over the secure channel". You might also check out how the '-X' flag to ssh works too, if you're working with X Windows.
Copying files from one system to another via ssh is even easier: check out the sftp secure version of the FTP program. It is quite scriptable (as I explore in Wicked Cool Shell Scripts) if you don't want to use it manually too.
Finally, in terms of setting up a secure-only login account, you'll want to turn off telnet access (see "inetd" or "xinetd") and give those folk regular login accounts: the only way they'll be able to connect will be via ssh.
Hope this helps you out!
Related Unix and Linux Help articles:
✔ Copy and Paste from the Mac OS X Command Line?
I am constantly running commands in Terminal.app on my MacBook and then copying and pasting the results into email messages or documents. Yes,...✔ Shell script to convert lowercase to title case?
As part of a project I'm working on, I find myself deep in a Linux shell script, needing to have a subroutine that...✔ Can I script renaming files based on an XML data map?
I have a folder full of files which are named with four digits and a file extension e.g. 0312.file and an XML-file describing...✔ Test for valid numbers in a Bash shell script?
In a different discussion on this site [see Redirecting input in a shell script] a visitor commented that "I was too busy trying...✔ Review: iSSH for the iPad/iPhone
If you're running an online business like I am, there are times when you need to connect and log in to the server...
Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
I do have a comment, now that you mention it!
Check This Out Too...
Look for Answers
All Our Categories
Apple iPad Help
Articles and Reviews
Auctions and Online Shopping
Blogs and Blogging
Building Web Site Traffic
Business and Management
Computer and Internet Basics
d) None of the Above
Google Gmail Help
Google Plus Help
Industry News and Trade Shows
iPhone and Cell Phone Help
iPod, Sony PSP and MP3 Player Help
Kindle Fire Help
Mac OS X Help
Pay Per Click (PPC) Advertising
Search Engine Optimization (SEO)
Shell Script Programming
Tech Support Video Help
The Writing Business
Twitter, LinkedIn and Social Network Help
Unix and Linux Help
Video Game Tips and Help
Windows PC Help
Find Me on Google+
ADT on G+