|
2006-09-14
, 20:15
|
Posts: 264 |
Thanked: 28 times |
Joined on May 2006
|
#2
|
|
2006-09-14
, 21:04
|
|
Posts: 919 |
Thanked: 37 times |
Joined on Aug 2006
@ /dev/null
|
#3
|
The Following User Says Thank You to SeRi@lDiE For This Useful Post: | ||
|
2006-09-15
, 20:18
|
Posts: 62 |
Thanked: 3 times |
Joined on Feb 2006
@ Italy
|
#4
|
1) Try renaming your authorized_keys file to authorized_keys2
Permissions should be 600
3) I don't know but wifi is better.
C:\putty> pscp -pw xxxxxxxxxxxxxx c:\test_file.txt user@192.168.x.x:/home/user/test_file.txt
sh: /usr/lib/sftp-server: not found
|
2006-09-15
, 21:11
|
|
Posts: 919 |
Thanked: 37 times |
Joined on Aug 2006
@ /dev/null
|
#5
|
|
2006-09-15
, 21:45
|
Posts: 264 |
Thanked: 28 times |
Joined on May 2006
|
#6
|
~/.ssh $ ls -la drwxr-xr-x 2 user users 0 Aug 24 16:33 . drwxr-x--- 18 user users 0 Sep 14 12:33 .. -rw------- 1 user users 404 Jul 1 18:15 authorized_keys2 -rw------- 1 user users 887 Jul 1 18:15 id_rsa -rw------- 1 user users 226 Jul 1 18:15 id_rsa.pub -rw------- 1 user users 395 Aug 24 16:33 known_hosts ~/.ssh $
|
2006-09-16
, 06:54
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#7
|
~ $ ls -la .ssh/ drwx------ 2 user users 1024 Jul 9 10:01 . drwxr-x--- 21 user users 1024 Sep 9 20:03 .. -rw------- 1 user users 1073 Jul 9 10:01 authorized_keys -rw-r--r-- 1 user users 445 Jul 9 10:01 known_hosts
#!/bin/sh # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root sudo gainroot <<EOF $0 $* EOF exit fi # real script follows BTADDR='00:10:c6:24:05:a9' IP=192.168.2.2 GW=192.168.2.1 NS=10.6.101.1 IFACE=bnep0 #insmod just to be sure insmod /mnt/initfs/lib/modules/current/bnep.ko #start PAN Bluetooth connection pand --connect $BTADDR # wait for the interface created by pand s=60 echo -n "Waiting $s secs for $IFACE" while [ $s -gt 0 ] ; do ifconfig $IFACE >/dev/null 2>&1 && break s=$((s-1)) echo -n "." sleep 1 done echo if ifconfig $IFACE >/dev/null 2>&1 ; then # bring it up echo "OK, bringing $IFACE up" ifconfig $IFACE $IP up route add default gw $GW echo "nameserver $NS" >/tmp/resolv.conf.lo else echo "Error: $IFACE not available." fi
|
2006-09-18
, 17:10
|
Posts: 62 |
Thanked: 3 times |
Joined on Feb 2006
@ Italy
|
#8
|
~ $ ls -la .ssh/ drwx------ 2 user users 0 Sep 18 19:35 . drwxr-x--- 18 user users 0 Sep 10 22:57 .. -rw------- 1 user users 294 Sep 15 20:21 authorized_keys -rw-r--r-- 1 user users 219 Jul 8 12:54 known_hosts
PuTTY-User-Key-File-2: ssh-rsa Encryption: aes256-cbc Comment: rsa-key-20060915 Public-Lines: 4 (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of some others scrambled chars...) Private-Lines: 8 (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of some others scrambled chars...) Private-MAC: (40 scrambled numbers)
---- BEGIN SSH2 PUBLIC KEY ---- Comment: "rsa-key-20060915" (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of 64 scrambled chars...) (line of some others scrambled chars...) ---- END SSH2 PUBLIC KEY ----
|
2006-09-18
, 17:20
|
Posts: 264 |
Thanked: 28 times |
Joined on May 2006
|
#9
|
|
2006-09-18
, 17:25
|
Posts: 62 |
Thanked: 3 times |
Joined on Feb 2006
@ Italy
|
#10
|
Did you provide a password when you generated your keys? ( I don't )
If so you'll need to enter that password each time you connect with ssh unless you run the putty agent which will handle that password for you.
1) I have dropbear working nice, but I start the connection entering as user, and then input the password I've setted on my 770 with passwd user. I'm using Putty on Windows, so I've generated the keys pair with PuttyGen and I've setted the private one in my Putty -> Connection -> SSH -> Auth. I've copied the public one as authorized_keys under home/user/.ssh/ and I've changed the permissions of the folder and the file. But, when connecting with Putty it says "Server refused our key" and I have to log in using the password. Can someone write how to use those keys as they are supposed to? Is it good to copy the public one into the file authorized_keys under home/user/.ssh ?
3) I have a bluetooth dongle on my PC and it is seen on the 770 (tested with hcitool scan). Could I use dropbear to establish a SSH connection through bluetooth rather than wi-fi? How?