Thank you cariboo907. That didn't fix the problem: after moving the key pair, I still can't log in. However, root access let me troubleshoot a bit. I still need help though.
I've looked in .xsession-errors, and found the following error:
Code:
/etc/gdm/Xsession: Beginning session setup...
/home/daily/.profile: 29: function: not found
Initializing new SSH agent...
succeeded
Identity added: /home/daily/.ssh/id_rsa (/home/daily/.ssh/id_rsa)
/home/daily/.profile: 37: Syntax error: "}" unexpected
The relevant portion of my .profile is:
Code:
28. # start the ssh-agent
29. function start_agent {
30. echo "Initializing new SSH agent..."
31. # spawn ssh-agent
32. ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV"
33. echo succeeded
34. chmod 600 "$SSH_ENV"
35. . "$SSH_ENV" > /dev/null
36. ssh-add
37. }
So, correct me if I'm wrong, but I guess something is happening like: the shell isn't recognizing the function declaration, it's not reading the rest of line 29, and so not recognizing the closing bracket.
But how do I fix it?
[edit]I tried commenting out lines 29 and 37 of .profile, and that didn't work.[/edit]
Bookmarks