Solving SSH Frustration on Linux System

  • Thread starter Thread starter Euclid
  • Start date Start date
AI Thread Summary
The discussion revolves around troubleshooting SSH connections on a Debian Linux system after transitioning from Windows XP. The user successfully connects their Macs but faces issues connecting to the Debian machine, suspecting network configuration problems. Key suggestions include ensuring the SSH daemon (sshd) is running and properly installed, with commands provided for starting it. Additionally, issues with file transfers and X11 forwarding are mentioned, with recommendations for using SSH options and alternative file transfer methods like gftp. Overall, the conversation emphasizes the importance of correct SSH setup and network configurations for successful remote connections.
Euclid
Messages
213
Reaction score
0
I recently learned about accessing computers remotely using ssh. I have been having some fun with this connecting my mac with my gf's mac.
I tried doing to same thing with a machine I had running Windows XP, but there were some goofy firewall settings that I couldn't get rid of for the life of me. So I installed Debian on the machine instead. I am completely new to Linux. I had a feeling that this might be easier with Linux than Windows, but I still can't make an ssh connection to my computer (both directions mac to Debian and Debian to mac don't work).
I am not sure what the problem is since I can connect my macs together without any trouble. Any ideas? Are there some settings I need to change on my Linux machine to make it accept ssh connections? I have a feeling this whole process is sensitive to how my machines are connected to the network. For instance, when both the macs are connected to the same university wireless network, I can connect. If I am connected through a router and the other mac is connected to the university wireless, I can't. If we are both connected through the same router, we can connect. My PC doesn't have a wireless card, so it connects directly to the wall.
Any help would be greatly appreciated!
 
Computer science news on Phys.org
in linux type as root user

/etc/init.d/sshd start

On debian root might be dissabled and you will have to do the following equivilant

sudo /etc/init.d/sshd start
[enter password]

then try connecting. If that doesn't exist use your package manager and install OpenSSH server.
 
I didn't have sshd installed. I installed it and I was able to connect. The new problem is I can't seem to load any files. I get an error message about loading the graphics, something about X11, maybe something having to do with "port forwarding". I would give you the exact error message but I can't seem to get in anymore. When I try to start sshd, it tells me it can't load the host key /etc/ssh/ssh_host_key_rsa. BTW, my sshd file seems to be located in /usr/sbin. Also when I give the command /usr/sbin/sshd start, it tells me there are too many arguments. Don't know what that's all about. Any ideas?
Out of curiosity, is "starting sshd" equivalent to "opening port 22"?
 
Last edited:
don't do ("usr/sbin/sshd start") that alway's start sshd by

/etc/init.d/sshd {start | stop | restart }

it will take care of the key's and all that for you

what you are looking for is X11 tunelling try

ssh -Y login@place
the -Y should do the trick but maby you should use another text editor such as vim, or emacs. if the network is slow you might want to download the files to your local computer and edit them like that and then send them back over the network.

In the latter case you can use gftp which will connect through ssh and allow you to transfer files fairly easily using its GUI, where then you can edit and send them back.
 
In general, when somebody says "open port 22" they mean allow traffic on that port in a firewall. sshd is a piece of software which runs in the background handling ssh connections to port 22 which is the port ssh utilizes.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top