maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   please help with ssh (https://talk.maemo.org/showthread.php?t=65293)

thesnake505 2010-11-09 08:52

Re: please help with ssh
 
Quote:

Originally Posted by paai (Post 867744)
Apart from winscp there is apso putty, that opens a ssh-terminal on your windows host. Try it.

If you can ping the N900 there probably is no firewall active.

Finally you can try 'telnet 192.168.2.2. 22' from the windows commandline to see if the N900 listens on the ssh port (22).

BTW: do you have a password for the 'user' acount on the N900? Perhaps winscp refuses to work if the password field id empty? You can remedy that with 'passwd user' from the n900 commandline.

Paai

telnet isnot a recognise command in win 7 cmd!

not sure what u meant with passwd user from the n900?? when i installed openssh it asked for a password, have tried with and with out the password in the feild and also with user as the username!

will have a look at the other win7 ssh client u mention!

i do have ubuntu on this laptop, im guessing its worth a try using that, so could some one do me a quick quide to setting up ssh with ubuntu?

and i do appreciate all the help given :D

jd4200 2010-11-09 09:24

Re: please help with ssh
 
Quote:

Originally Posted by thesnake505 (Post 867846)
telnet isnot a recognise command in win 7 cmd!

not sure what u meant with passwd user from the n900?? when i installed openssh it asked for a password, have tried with and with out the password in the feild and also with user as the username!

The 'user' account (which is you) has no password by default, so you will not be able to login via SSH.
You need to set a password for it, by:

Open up the terminal, and as root type:
passwd user (note, passwd is not a typo).

Then you will be able to login as user, logining in as root via SSH is a bad idea.

paai 2010-11-09 11:40

Re: please help with ssh
 
snake:
first, check that the ssh daemon is running on your N900


$ ps ax | grep sshd

it should show someting like

897 ? Ss 0:00 /usr/sbin/sshd

Like jd4200 and myself already suggested: give yourself a password.

$ passwd user
New pasword for user:
retype password:

(Your name on the N900 is always 'user')

Install putty, run it
It will ask for hostname or ip-address. That will be 192.168.2.2
for you (BTW: you don't have a DHCP server that can assign different IP-numbers?)

A black window will appear with 'username' (that will be user) and 'password for user' (that will be the password you assigned to user).

jd4200 and I have already said that enabling root login and logging in as root is a Bad Idea (TM). I will say it again.

paai

thesnake505 2010-11-09 16:11

Re: please help with ssh
 
hay, mannaged to get a connection using putty which is cool so thanks all for that, i like the way it looks just like terminal x n the n900 :D
now i have a couple of questions, how do i transfer files using putty?

if nessacery with using putty can i login as root with sudo gain root???

cheers

JonWW 2010-11-09 16:49

Re: please help with ssh
 
You cannot transfer files using PuTTY as it just a Terminal window running on your phone. As you can access the N900 now, give WinSCP a try again.

When you login with PuTTY it asks you for a user name and password
User name:root
Password:The password you entered in the N900 when you installed OpenSSH

thesnake505 2010-11-09 17:03

Re: please help with ssh
 
winSCP is still not working, im now getting invalid access to memory every time i hit login!

paai 2010-11-10 07:46

Re: please help with ssh
 
There is a commandline counterpart to winscp, called PSCP. Download it from the same site as putty itself.

Your problems with winscp are worrying. Are you certain there is no virus in it? Run a viruscheck on your windows PC, delete winscp and install it again.

Paai

paai 2010-11-10 07:48

Re: please help with ssh
 
Quote:

Originally Posted by JonWW (Post 868226)

...

User name:root
Password:The password you entered in the N900 when you installed OpenSSH

Jon: please do not suggest to people to do ssh-logins as root. It is a major security hole.

Snake, if you changed sshd.conf to allow root logins, you'd better change it back.

Paai

paai 2010-11-10 07:54

Re: please help with ssh
 
Quote:

Originally Posted by thesnake505 (Post 868196)

...


if nessacery with using putty can i login as root with sudo gain root???

cheers

Yes, that is possible and much, much safer than allowing direct root login, which, (Grin, I feel I repeat myself) should be disabled...

But I gather that you are not very experienced with Linux, so understand that being root is an excellent opportunity to shoot yourself in both feet at the same time, so avoid it as much as possible.

Paai

famdango 2010-11-12 22:52

Re: please help with ssh
 
Quote:

Originally Posted by thesnake505 (Post 867219)
ok, i have installed ssh status app noobmonkey put a lint to, i click it so it says ssh status:on

follow the procedure again, and winscp still just disapears, when i click login :-(


edit, also tried pinging my n900 and got this reply

C:\Users\martyn>ping 192.168.2.2

Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.6: Destination host unreachable.
Reply from 192.168.2.6: Destination host unreachable.
Reply from 192.168.2.6: Destination host unreachable.
Reply from 192.168.2.6: Destination host unreachable.

Ping statistics for 192.168.2.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)

I was having the same problem, where winscp just shut down at every login attempt. I opened TCP 22 port in windows firewall, and then whilst logging in to winscp, chose save instead of login. It saved the connection to user@192.168.2.4 and then connected straight up with no more problems..


All times are GMT. The time now is 14:46.

vBulletin® Version 3.8.8