Let $G$ be a smooth algebraic group over a field $k$. Then $Aut(G)=\mathbf{G}(k)$, where $\mathbf{G}$ is the trivial right $G$-torsor.
My attempt:
Given a $k$-rational point $\operatorname{Spec}(k) \xrightarrow{g} G$, then one obtains an automorphism of $G$ by composing the structure morphism $G \rightarrow \operatorname{Spec}(k)$ with $g$.
For the other direction I am getting confused, and haven't been able to come up with a decent approach.
Any help please?