Click to See Complete Forum and Search --> : Ssh
SPo0n
02-26-2003, 02:59 PM
I'm pretty new to this, but so far i've managed to get debian woody working with nvidia drivers etc. Now i need to have ssh access to this machine. I can connect, but it always says incorrect user/pass no matter what i try. (i've added the users, tried different passwords etc) What's going on?
Also what ports does ssh use? I've forwarded 21 and 80 to my ip on my router.
doublec16
02-26-2003, 04:24 PM
ssh uses port 22 if I'm not mistaken. I don't know why your login/pass wouldn't work. Maybe you are running different versions of ssh. Try ssh from the computer to itself. If you have trouble doing that then perhaps your user is not set up to use a shell or something.
SPo0n
02-27-2003, 04:18 AM
how would i set my users up? they are all just default as far as i know.
I think the sshd is running but i'm not sure. I can access the machine from computers on my router but every account says 'access denied'. From a remote location i get connection refused. I've tried forwarding the ports to my internal ip.
When i can get to my home i'll attach my sshd_config and maybe someone will know what i'm doing wrong
chrism01
02-27-2003, 07:49 AM
ps -ef|grep ssh
will show if the daemon is up.
Check both systems. Try to ssh to yourself on the same machine ie it'll try to use the lo (loopback interface)
Also try with your ip.
SPo0n
02-27-2003, 11:13 AM
j@dillinja:~/.fluxbox$ ps -ef|grep ssh
j 24883 24881 0 15:08 pts/0 00:00:00 grep ssh
both systems? I don't know what you mean. i only have one linux box. I have 2 other windows boxes which i tried to ssh from. i also tried at college and asked 2 friends to try from their machines, all get the same errors (access denied or connection refused.)
Port 22 is forwarded to my ip just incase that was the problem.
From my this box:
j@dillinja:~/.fluxbox$ ssh -l j localhost
ssh: connect to address 127.0.0.1 port 22: Connection refused
j@dillinja:~/.fluxbox$ ssh -l j (myip)
The authenticity of host '(myip) (myip)' can't be established.
RSA1 key fingerprint is a8:5e:c9:25:52:19:14:92:75:16:fc:40:c5:34:62:4f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '(myip)' (RSA1) to the list of known hosts.
Permission denied.
I replaced my ip for obvious reasons :)
I can however access my apache thing (http://jsamat.homelinux.net)
chrism01
02-27-2003, 11:59 AM
ssh isn't running; all you're getting is the process running the grep ssh cmd.
Try service sshd start (as root)
SPo0n
02-27-2003, 04:09 PM
ok the service is started. i can now ssh locally but not remotley. Still get the connection refused errors, any ideas?
just figured it out. i was having some dns problems and my ip was reporting wrongly. It works with my correct ip